36 #ifndef _NSOUND_GUITAR_BASS_H_
37 #define _NSOUND_GUITAR_BASS_H_
70 "Nsound::GuitarBass by Nick Hilton\n\n"
72 "Based on physical models written in Csound by Hans Mikelson.\n\n"
74 ";BASS PHYSICAL MODEL\n"
87 "kenvflt linseg 0, .01, 1, p3-.11, 1, .1, 0\n"
88 "; THIS ENVELOPE LOADS THE STRING WITH A TRIANGLE WAVE.\n"
89 "kenvstr linseg 0, 1/ifqc/8, -p4/2, 1/ifqc/4, p4/2, 1/ifqc/8, 0, p3-1/ifqc, 0\n"
90 "; THIS ENVELOPE IS FOR THE BODY RESONANCE\n"
91 "kenvres linseg 0, .1, 1, p3-.1, 1\n"
93 "; DELAY LINE WITH FILTERED FEEDBACK\n"
94 "afiltr tone adline, ifqc*ifqc/10\n"
95 "adline delay afiltr + kenvstr, 1/ifqc\n"
97 "; RESONANCE OF THE BODY\n"
98 "abody1 reson afiltr, 160, 40\n"
99 "abody2 reson afiltr, 80, 20\n"
101 "aout = afiltr + .0001*kenvres*abody1 + .00004*kenvres*abody2\n"
102 " out aout * kenvflt\n"
std::string getInfo()
Nsound::GuitarBass information.
GuitarBass(const float64 &sample_rate)
Creates a Bass Kick Drum.
AudioStream play()
Plays a demo for this instrument.
The Nsound Instrument baseclass. All Nsound instruments extend this class.