implemented instruments:
generate_arcoStrings, generate_bassoon, generate_clarinet, generate_flute, generate_horn, generate_oboe, generate_organ, generate_saxophone, generate_shepardsCarillon, generate_shepardsOrgan, generate_shepardsStrings, generate_trumpet, generate_tubularBells
This commit is contained in:
parent
0fc88c133a
commit
3f395904c6
BIN
App/app.mlapp
BIN
App/app.mlapp
Binary file not shown.
@ -28,6 +28,34 @@ function output = SoundGeneratorSelect(amplitude, frequency, phase, fs, duration
|
||||
output = generate_cosine(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Heartbeat")
|
||||
output = generate_heartbeat(amplitude, frequency, phase, fs, duration, duty);
|
||||
|
||||
% instruments:
|
||||
elseif(number == "ArcoStrings")
|
||||
output = generate_arcoStrings(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Bassoon")
|
||||
output = generate_bassoon(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Clarinet")
|
||||
output = generate_clarinet(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Flute")
|
||||
output = generate_flute(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Horn")
|
||||
output = generate_horn(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Oboe")
|
||||
output = generate_oboe(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Organ")
|
||||
output = generate_organ(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Saxophone")
|
||||
output = generate_saxophone(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "ShepardsCarillon")
|
||||
output = generate_shepardsCarillon(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "ShepardsOrgan")
|
||||
output = generate_shepardsOrgan(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "ShepardsStrings")
|
||||
output = generate_shepardsStrings(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "Trumpet")
|
||||
output = generate_trumpet(amplitude, frequency, phase, fs, duration, duty);
|
||||
elseif(number == "TubularBells")
|
||||
output = generate_tubularBells(amplitude, frequency, phase, fs, duration, duty);
|
||||
else
|
||||
output = zeros(1, fs * duration);
|
||||
end
|
||||
|
Reference in New Issue
Block a user