/*************************************************** Welcome to MacCsound! This is the Default File Template. You can create your own template file! Just save any file as "default.csd" in your local ~/Library/Application Support/MacCsound folder. ***************************************************/ ; this instrument can be allocated from the score ; or from midi ( just make sure --midi-velocity-amp=4 --midi-key-cps=5 ; are specified in the "Advanced Commandline Options" ) ginstance vstinit "/Library/Audio/Plug-Ins/VST/MachFive VST OSX 5.1.vst", 0 vstedit ginstance instr 1 kstatusnoteon init 144 kchan init 1 knotenumber init 64 knotevelocity init 64 ktrig init 1 aout1 init 0 aout2 init 0 ain1 init 0 ain2 init 0 if(ktrig == 1) then vstmidiout ginstance, kstatusnoteon, kchan, knotenumber, knotevelocity ktrig = 0 endif aout1,aout2 vstaudio ginstance, ain1, ain2 out aout1 endin ;causes a midi note to be sent instr 90 ktrig init 0 if(ktrig == 0) then event "i", 100, 0, 1, 64, 64 ktrig = 1 endif endin ;sends a midi note on ;p4 = midi note number ;p5 = velocity (amplitude) instr 100 midion 1, p4, p5 endin f1 0 512 10 1 i1 0 88888 Version: 3 Render: Real Ask: Yes Functions: ioObject Listing: Window WindowBounds: 723 92 1480 938 CurrentView: orc IOViewEdit: Off Options: -b128 -A -s -m167 -R --midi-velocity-amp=4 --midi-key-cps=5 ioView background {60108, 65535, 63132} ioText {20, 44} {130, 218} label 0.000000 0.001000 "" center "Lucida Grande" 10 {0, 0, 0} {65535, 65535, 65535} nobackground border Transposition Level ioGraph {163, 38} {472, 230} ioSlider {69, 68} {34, 184} 20.000000 2000.000000 743.888000 pitch ioButton {11, 272} {146, 54} event 1.000000 "" "Click for new note" "/" i1 0 10 10000 300 ioButton {280, 310} {128, 50} event 1.000000 "" "send midi ON" "/" i90 0 0.1