Skip to content

Commit

Permalink
updating VCV Rack demo instruments
Browse files Browse the repository at this point in the history
  • Loading branch information
rorywalsh committed Sep 17, 2019
1 parent dd3b248 commit e5be8d9
Showing 1 changed file with 46 additions and 33 deletions.
79 changes: 46 additions & 33 deletions Source/Utilities/CabbageStrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,39 +86,52 @@ class CabbageStrings
static String getNewRackModuleFileText()
{
String newRackFile =
"<Cabbage>\n"
"form caption(\"CabbageModule\") size(100, 380), colour(255, 255, 255), pluginid(\"def1\")\n"
"cvinput bounds(40, 60, 20, 20), channel(\"cvInput1\")\n"
"label bounds(0, 90, 100, 40), fontcolour(0,0,0) text(\"Input\")\n"
"cvoutput bounds(40, 300, 20, 20), channel(\"cvOutput1\")\n"
"label bounds(0, 330, 100, 40), fontcolour(0,0,0) text(\"Output\")\n"
"rslider bounds(0, 150, 100, 100), channel(\"gain\"), textcolour(0, 0, 0), range(0, 1, 0, 1, .01)\n"
"</Cabbage>\n"
"<CsoundSynthesizer>\n"
"<CsOptions>\n"
"-n -d \n"
"</CsOptions>\n"
"<CsInstruments>\n"
"; Initialize the global variables. \n"
"ksmps = 32\n"
"nchnls = 2\n"
"0dbfs = 1\n"
"\n"
"\n"
"instr 1\n"
" aInput chnget \"cvInput1\"\n"
" \n"
" aOut = aInput*chnget:k(\"gain\")\n"
"\n"
" chnset a1, \"cvOutput1\"\n"
"endin\n"
"\n"
"</CsInstruments>\n"
"<CsScore>\n"
";starts instrument 1 and runs it for a week\n"
"i1 0 [60*60*24*7] \n"
"</CsScore>\n"
"</CsoundSynthesizer>\n"
"<Cabbage>\n"
"form caption(\"CabbageModule\") size(100, 380), colour(255, 255, 255), pluginid(\"def1\")\n"
"screw bounds(5, 10, 15, 15)\n"
"screw bounds(80, 10, 15, 15)\n"
"screw bounds(5, 360, 15, 15)\n"
"screw bounds(80, 360, 15, 15)\n"
"\n"
"cvinput bounds(34, 60, 30, 30), channel(\"cvInput1\")\n"
"label bounds(0, 90, 100, 12), fontcolour(0,0,0) text(\"Input\")\n"
"cvoutput bounds(34, 300, 30, 30), channel(\"cvOutput1\")\n"
"label bounds(0, 330, 100, 12), fontcolour(0,0,0) text(\"Output\")\n"
"rslider bounds(0, 150, 100, 100), channel(\"gain\"), text(\"Gain\"), textcolour(0, 0, 0, 255), range(0, 1, 0, 1, 0.01)\n"
"light bounds(45, 250, 10, 10), channel(\"light1\")\n"
"</Cabbage>\n"
"<CsoundSynthesizer>\n"
"<CsOptions>\n"
"-n -d \n"
"</CsOptions>\n"
"<CsInstruments>\n"
"; Initialize the global variables. \n"
"ksmps = 32\n"
"nchnls = 2\n"
"0dbfs = 1\n"
"\n"
"\n"
"instr 1\n"
" kLightBrightness init 0\n"
" aInput chnget \"cvInput1\"\n"
" printk2 chnget:k(\"gain\")\n"
" aOut = aInput*chnget:k(\"gain\")\n"
" chnset aOut, \"cvOutput1\"\n"
" \n"
" if metro(2) == 1 then\n"
" kLightBrightness = kLightBrightness == 0 ? .8 : 0\n"
" chnset kLightBrightness, \"light1\"\n"
" endif\n"
" \n"
" \n"
"endin\n"
"\n"
"</CsInstruments>\n"
"<CsScore>\n"
";starts instrument 1 and runs it for a week\n"
"i1 0 [60*60*24*7] \n"
"</CsScore>\n"
"</CsoundSynthesizer>\n"
"";
return newRackFile;
}
Expand Down

0 comments on commit e5be8d9

Please sign in to comment.