mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Move library tree where it belongs
This commit is contained in:
19
lib-src/libnyquist/nyquist/tran/instrmodalbar.alg
Normal file
19
lib-src/libnyquist/nyquist/tran/instrmodalbar.alg
Normal file
@@ -0,0 +1,19 @@
|
||||
(INSTRMODALBAR-ALG
|
||||
(NAME "modalbar")
|
||||
(ARGUMENTS ("time_type" "t0")("double" "freq") ("int" "preset")("time_type" "dur") ("rate_type" "sr"))
|
||||
(STATE ("struct instr *" "mymbar" "initInstrument(MODALBAR, round(sr));
|
||||
controlChange(susp->mymbar, 16, preset);")
|
||||
("int" "temp_ret_value" "noteOn(susp->mymbar, freq, 1.0);"))
|
||||
(NOT-IN-INNER-LOOP "freq" "temp_ret_value")
|
||||
(SAMPLE-RATE "sr")
|
||||
(TERMINATE (after "dur"))
|
||||
(INNER-LOOP "
|
||||
output = (sample_type) tick(mymbar)")
|
||||
(SUPPORT-FUNCTIONS "
|
||||
#include \"instr.h\"
|
||||
")
|
||||
(FINALIZATION "
|
||||
deleteInstrument(susp->mymbar);
|
||||
")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user