# ex2C02.py # Midi Controller In from moduleCsound import * add(startSyn) add(startOpt) add("-+rtmidi=virtual -M1 -odac") add(stopOpt) add(startIns) header(ksmps=32) add(""" instr 1 ; --- receive controller number 1 on channel 1 and scale from 220 to 440 kFreq ctrl7 1, 1, 220, 440 ; --- use this value as varying frequency for a sine wave aOut poscil 0.2, kFreq outs aOut, aOut endin """) tags(2) add("i 1 0 60") tags(3) writeRun(__file__, False)
Thursday, July 13, 2017
ex2C02. Midi Controller In
Subscribe to:
Post Comments (Atom)
-
# ex1D13.py # Simple Algorithmic Note Generator from moduleCsound import * tags( 1 ) header(ksmps =32 , nch =1 ) # --- global # G...
-
# ex2C03.py # Midi All In from moduleCsound import * add(startSyn) add(startOpt) add( "-+rtmidi=virtual -Ma -odac" ) add(...
-
# ex2A01.py # Hello World from moduleCsound import * tags( 1 ) header(ksmps =32 , nch =1 ) # --- instrument add( ""...
No comments:
Post a Comment