BrianLeach MUSC9002:ComputerMusic2 Project2c)Apreparation/proposalfortheMastersProject(Technology Research)
Lecturer:HughMcCarthy Due:Friday30thMarch2012 Studentnumber:R00043544 17pages.
TobuildaMonophonicModularElectronicMusicSynthesiser.
Introduction Abasicsoundsynthesisercanbemadefromthefollowing5typesofmodules: 1) 2) 3) 4) 5)
Voltage-ControlledOscillator (VCO) Voltage-ControlledAmplifier(VCA) Voltage-ControlledFilter(VCF) EnvelopeGenerator(EG) LowFrequencyOscillator(LFO)
I will discuss the operation of each of these modules and propose an implementation of them in hardware electronics, along with suitable circuit diagrams. Iwillalsoestimatethecostof buildingthemachine. The aim ofthis essay istogaugethefeasibilityofbuildingasynthesiserformyMastersProject (TechnologyResearch).
Overview Themodularnatureofthisprojectmeansthateachmoduleisseparatefromthe othersandalsothattheycanbeinterconnectedinanyconceivablewaytocreate manydifferenttypesofsoundswhenplayedbyakeyboardorothercontroller.I willnowdiscussatypicalmodeofsoundproduction. IfweconsidertheVoltage-ControlledOscillator(VCO)wemustofcoursedefine itsfrequency,aControlVoltage(CV)isusedtodothis.Thisvoltageisdesignated by the key that the user presses on the keyboard. Thus we need a way to transformkeyboardactivityintoControlVoltages.Fornowletsassumethatthe synthesiserisreceivingmidimessages.Acontrolmoduleisnecessarywhichhas a midi input, and a control voltage output. For clarity I will represent control pathswitharedline,andaudiopathswithablueline.
Figure 1. Midi messages being transformed into an audio signal with a definedfrequency.
2
This CVoutput can be connected into the CV input of a VCO. The VCO is now outputtingasignalwithadefinedfrequency.Asyoucanseein Figure1theVCO hasaCVinputandanaudiosignaloutput. ThissignalcanbeputintotheinputoftheVoltage-ControlledAmplifier(VCA) whichmultipliesthesignalbysomenumber≥ 0.Thisnumberisdefinedbythe CVinputoftheVCA.ConsiderthatthisCVcouldbechangingovertime,creating anamplitudeenvelope.ThisenvelopeisdefinedbytheEnvelopeGenerator(EG). TheEGmustreceivedatafromthecontrolmoduletotellitwhentogeneratethe envelope,triggers.
Figure2.AnEnvelopeGeneratoraffectingtheamplitudeoftheaudiosignal viaaVoltage-ControlledAmplifier.
TheEGhas4parametersthataresetbytheuser:Attack,Decay,Sustain,Release (ADSR).
Figure3.AtypicalvoltageenvelopegeneratedbytheEnvelopeGenerator.
3
Ifthesignal iscomplex (has many overtones) then wecan pass itthroughthe VoltageControlledFilter(VCF)toshapethesound.TheVCFwillcutfrequencies above or below some defined frequency. This frequency is defined by the CV inputoftheVCF.Thisfrequencycouldchangeovertime(haveanenvelope)ifwe passtheEGintotheVCF.TheinputoftheVCOcouldalsobeaffectedinthesame way.
Figure4.TheEnvelopeGeneratorcanaffectanyofthemodulesbybeing passedintotheirControlVoltageinput.
NotethattheVCOisnowreceivingtwocontrolvoltages.Thevoltagesneedtobe addedtogetherinamixer.ThesimplestwaytoachievethisistohavetwoCV inputs on the VCO, each one going through an internal resistor. This forms a passive mixer. Any module can receive multiple inputs via a built in passive mixer. Note also that this simple mixercan add control voltagesand/or audio signalsindiscriminatelyasallitisdoingisaddingvoltages. Sowehavetheabilitytovarythepitch,volumeandcharacterofthetonebeing produced. Modules could be replicated so that two oscillators would generate audiosignalsfromthesamecontrolvoltage:
4
Figure5.TwoVoltage-ControlledOscillatorsbeingcontrolled simultaneouslytoproduceadditivesynthesis.
Orthesecondoscillator’soutputcouldbeusedtocontrolanothermodule:
Figure 6. A Voltage-Controlled Oscillator being used to modulate the FrequencybeingproducedbyasecondVoltage-ControlledOscillator.
NotethattheoutputofthesecondVCOisactingasacontrolvoltageandnotas anaudiosignal.Usedinthiswayanoscillatorcanmodulatethecontrolvoltageof anotheroscillatortocreateFrequencyModulation(FM),orifitisaffectingthe
5
VCA,AmplitudeModulation(AM).Ifwewantafixedfrequencyofmodulation, ratherthanonedeterminedbywhichkeywepress,wecanuseaLowFrequency Oscillator(LFO),socalledbecauseitgenerallyoperatesatfrequenciesbelowthe audiblerangealthoughthisisnotnecessarilythecase.Thisoscillatorneedsno controlinputasitsfrequencyissetbyitsownonboardcontrol.
Figure7.ALowFrequencyOscillatormodulatingthecutofffrequencyofa Voltage-ControlledFilteratafixedfrequency.
This outlines just some of the many ways these modules can be connected to generatesound.Iwillnowlookateachmoduleinfurtherdetail.
6
ControlModule This module must sense which key is pressed, when the key is pressed, and whenitisreleased.TheoutputsmusttriggertheEGandalsogivetheVCOthe correctcontrolvoltagetoproducethedesiredfrequency. ControlVoltage Analogue synthesisers generally use control voltages ranging from 0V to 5V. MoogsynthesisersusetheVoltsPerOctavesystemwhichmeansthatanincrease of1Vcorrespondstoadoublingoffrequency 1,oranincreaseofonesemitoneis equalto1/12ofavolt.Hencethenotesandcorrespondingcontrolvoltagesare:
Note
CV
Note
CV
Note
CV
Note
CV
Note
CV
A1
0
A2
1.0000
A3
2.0000
A4
3.0000
A5
4.0000
A♯
0.0833
A♯
1.0833
A♯
2.0833
A♯
3.0833
A♯
4.0833
B
0.1667
B
1.1667
B
2.1667
B
3.1667
B
4.1667
C
0.2500
C
1.2500
C
2.2500
C
3.2500
C
4.2500
C♯
0.3333
C♯
1.3333
C♯
2.3333
C♯
3.3333
C♯
4.3333
D
0.4167
D
1.4167
D
2.4167
D
3.4167
D
D♯
0.5000
D♯
1.5000
D♯
2.5000
D♯
3.5000
D♯
4.5000
E
0.5833
E
1.5833
E
2.5833
E
3.5833
E
4.5833
F
0.6667
F
1.6667
F
2.6667
F
3.6667
F
4.6667
F♯
0.7500
F♯
1.7500
F♯
2.7500
F♯
3.7500
F♯
4.7500
G
0.8333
G
1.8333
G
2.8333
G
3.8333
G
4.8333
G♯
0.9167
G♯
1.9167
G♯
2.9167
G♯
3.9167
G♯
4.9167
A
5.0000
4.4167
Table1.NotesandControlVoltagesintheVoltsPerOctavescheme. Trigger/Gate TheControlModulemustalsosendinformationtotheEGwhichwilltelltheVCA toturnon,allowingthesignalfromtheVCOtobeheardonlywhenakeyisbeing helddown.AcommonwaytoimplementthisiswithanegativeTriggeranda positive Gate1. The Trigger signal is kept high (around 5V) and goes to 0V momentarilywhenakeyispressed.TheGatesignaliskeptat0Vandgoeshigh (5V)forthedurationoftimethatakeyispressed.Thisinformationisenoughto telltheenvelopegeneratortogeneratetheattack,sustainorreleaseportionof theenvelope7(decayhappensimmediatelyafterattackbydefinition).Inpractice the Gate voltage could be the Control Voltage discussed above (or a suitable multiple of it) as the CV 0V when no key is pressed, and >0V when a key is pressed.
7
One way toimplement the control module would betotakeinmidi messages whicharecomprisedofanotenumber(whichkeyispressed),anoteonmessage (whenthe key is pressed)and a note off message (when the key is released). ThisinformationcouldbetransformedtoCVandTrigger/Gateinformation:
Figure8.BlockdiagramofaMiditoControlVoltage/Gateconverter8.
Thisisa complicatedsystemwhichwouldbedifficult tobuildfromscratch,but there are commercially available modules retailing around €200 which are designed to perform exactly this function e.g. the ‘Kenton Modular Solo’ http://www.kentonuk.com/products/items/m-cv/modsolo.shtml. An Arduino couldbeprogrammedtoperformthesefunctionsandpurchasedforaround€50. Another more fundamental way to implement this would be to modify an existing keyboard. Each key could tap into a line of equal resistors in series whichwoulddivide5Vinto61equallyspacedvoltages.Twoadditionalcontacts undereachkeycouldprovidetheTriggerandGate.
8
Figure9.Eachkeyonthekeyboardcouldactuate3switchestogeneratea Gate,TriggerandspecificControlvoltage.
Thegateandcontrolvoltageoutputisselfexplanatory.Thetriggeroutputworks likethis:whennokeyispressedtheswitchesaretotheleftandtheoutputis5V, whenakeyispressedthecorrespondingswitchgoestotheright,thevoltagewill dipmomentarilyto 0Vwhilethecorrespondingcapacitoris charging.Thistime need only be a few milliseconds so a small capacitance will suffice. Once the capacitorischargedtheoutputwillreturnto5V.Whenthekeyisreleasedthe switchreturnstotheleftcontactandthecapacitorisdischarged,allowingthe processtoberepeated. Thiswouldbethecheapestoptionasanoldkeyboardcouldbesalvagedforvery littlemoney.
9
Voltage-ControlledOscillator ThekeytomakingamusicalVCOwasdiscoveredbyRobertMoogandoutlined inhis1964paper‘Voltage-ControlledElectronicMusicModules’.Henoted: “In Technical measurement and control operations, a linear control voltage – frequencyrelationshipisfrequentlyuseful.Intheproductionofmusic,however, constant frequency differences are of little value. The fundamental subjective qualityoffrequencychangeistheinterval,whichisaratiooftwofrequencies.In ordertobemusicallyvaluable,aVCOshouldgenerateafixedfrequencyratiofor agivencontrolvoltagechange.Inmathematicallanguage,thefrequencyshould beanexponentialfunctionofthecontrolvoltage.”2 TheimportanceofhavinganexponentialrelationshipbetweentheCVandthe output frequency is clear if we imagine an LFO modulating the CV feeding an audiooscillator.LetssaytheCVis3V,thiscorrespondstothenoteAat440Hzas describedabove.NowletssaywewanttheLFOtovarythisnoteupanddownby asemitone,henceitsvaluemustchangefrom-0.0833to+0.0833(±1/12V).A linearVCOcouldbecreatedthatwouldproduceaG#(415.3Hz,24.7Hzbelow A440)with a control voltage of2.9167V,but anincrease ofcontrol voltage to 3.0833V would now lead to an increase of 24.7Hz, giving 464.7Hz. The actual valuewewantisA#(466.16Hz),soweseethatourLFOreducesthepitchbya semitonebutfailstoincreasethepitchbythesameamount.Thisvibratoisnot centered on A and thus does not sound as we would expect musically. The introduction of an exponential converter for the control voltage solves this problem and ensures that a linear increase/decrease in CV corresponds to a fractional increase/decreasein frequency,andhence a fixed increase/decrease inpitch. SoourVCOmusthavetheabilitytoacceptmultiplecontrolvoltages,addthem togetherlinearly,andconvertthesumtoanexponentialvaluewhichaffectsthe frequencyofoscillation.
Figure 10. Block diagram of a musical Voltage-Controlled Oscillator with Exponentialconverter.
TheExponentialconverterisofkeyimportanceandwillrequirefurtherresearch tobeunderstoodfullyandimplementedproperly.ThecircuitsuppliedbyMoog inhispapergivesastartingpointforfurtherresearch.HereishisVCOdesign:
10
Figure 11. Circuit Diagram of Robert Moog’s Voltage-controlled oscillator from his 1965 paper. Note the three sections: Adder, Exponential Generator,andRelaxationOscillator(bottom).
11
Voltage-ControlledAmplifier Our perception of loudness follows an exponential relationship similar to that described for perception of pitch: a wave with twice the amplitude is not perceived as twice as loud3. Luckily the VCA is controlled by the envelope generatorwhichgeneratesitsenvelopebycharging/dischargingcapacitors.This process generates exponential voltage increases/decreases9 and hence we can useaVCAthathasalinearCV-to-gainrelationship. AsimpleopampamplifiercircuitcouldbeusedwithalinearVoltageControlled Resistor(VCR)controllingthegain.ItisimportantthattheVCRislinearsothat the signal is not distorted4. Remember that we are amplifying an Alternating CurrentsotheVCAmustbelinearforpositiveandnegativevoltages.Ofcourse some‘distortion’maybedesirable,asthiswillgivethesounditsowncharacter. ItwasthespecifictypeofdistortioninherentinthecircuitsdesignedbyMoog thatmadethemsoundsodesirable5. The VCRs value, and hence the gain of the VCA is controlled by the varying ControlVoltagecomingfromtheEnvelopeGenerator.
Figure 12. A Voltage-Controlled Amplifier utilizing a Voltage-controlled Resistor.
Note that anInverting amplifier must beused because a gain of0 is required whennonoteisbeingplayed.Thegainofthecircuitis G=-VCR/R1 SowhennonoteisbeingplayedthevalueoftheVCRmustbe0andwhenat maximumgainwerequireVCR=R1togiveunitygain. 12
TheVCRcouldbeaFieldEffectTransistor(FET) 4oranLEDpointedataLight DependentResistor.Someexperimentationwillberequiredtoseewhatmethod soundsbest.
Voltage-ControlledFilter TheFiltermodulewilltakeanaudioinputandfilteroutsomefrequencieswhich aredefinedbythecutofffrequencycontrol.Thiswillshapethetoneofthesound beingproducedbytheVCO.Avariablequality(Q)controlcauseresonancejust belowthecutofffrequency.Thisresultsinanamplificationofasmallfrequency bandwhichaddscharactertothefilter.ThemoduleshouldhaveLowPass,High PassandBandPassmodes. Hereisasimplecircuitasastartingpoint.VaryingtheR1andR2simultaneously willchangethecutofffrequency.ReplacingtheseresistorswithVCRswillallow thecutofftobechangedovertimebytheCVprovidedbytheEGorLFO.Having variableresistors,controllablefromthefrontpanel,inserieswiththeVCRswill definetherangeofeffecttheCVhas.
Figure 13. Sample Filter circuit diagram which could be adapted to have Voltagecontrol6.
13
EnvelopeGenerator AsuitablecircuitdiagramfortheEnvelopeGeneratorisgivenbelow
Figure14.EnvelopeGeneratorwithADSRcontrols7.
TheGate/Triggermessagesandcorrespondingoutputareshownbelow
Figure15.Trigger/GatemessagesandcorrespondingEnvelopes7.
TheinputsofthemodulearetheGateandTriggermessages.Theoutputisthe voltageenvelopewhichcanbesentontotheCVinputsofanyothermodule.The amplitudeoftheenvelopecanbesetbytheoutputamplifiersectionandthusthe rangeortheEGcanbechangedbysettingthegainofthisstage.
14
LowFrequencyOscillator The LFO is the simplest module as it requires no control input. It only has a signaloutput.Initsmostsimpleform,thismodulecouldbeasinewavephase shiftoscillatorwhichisacircuitthatIhavebuiltbefore.
Figure16.APhaseShiftOscillator.
The frequency of oscillation can be set using a variable resistor, and the amplitude ofoscillationcan beset bypassing the phaseshiftoscillator output throughanopampamplifiercircuitwithavariableresistorcontrollingitsgain. Othermorecomplicatedcircuitscouldbeusedwhicharecapableofgenerating triangular, saw tooth and square waveforms thus giving more options for the typeofmodulationproduced.TheoutputoftheLFOcanbesenttotheCVinput ofanyothermodule.
PowerSupplyUnit Eachmoduleshouldbecapableofbeingpoweredbya15V1ADCPowersupply. Thisunitcouldbebought,orsalvagedfromoldequipment,as15Vsuppliesare quitecommon.
15
Estimatedcost: Electroniccomponents Control Module €50 VCO Module €10 VCA Module €5 VCF Module €5 EG Module €5 LFO Module €5 PSU €15 Hardware Jack Sockets Knobs PatchLeads Metal Housing
€10 €5 €0(Ihavemanybrokenguitarleadsthatcanbesalvaged) €0 (can be scavenged)
Total
€110
This is probably an over estimation as the bulk of the cost is in the control module, which could be an Arduino borrowed from the college (if midi compatibility is desired), or a modified keyboard which would require an investment of time rather than money. This project could be realized for less than€100,whichisfeasibleforme.
Conclusion I haveoutlinedthe mode ofoperation ofa modular synthesiser and proposed somecircuitdesigns.Whilefurtherresearchisneededtorealiseallthemodules discussed(particularlytheVCO),Ibelievethatitispossibleandaffordablefor me to build a self-contained modular synthesiser for my Masters research project.Thesynthesiserwouldbecomprisedof: 1ControlModule 2Voltage-ControlledOscillators 1Voltage-ControlledAmplifier 1Voltage-ControlledFilter 1EnvelopeGenerator 1LowFrequencyOscillator 1PowerSupplyUnit
16
References [1]Jenkins,Mary. AnalogueSynthesizers.FocalPress,Oxford,2007.p.35 [2] Moog, Robert. Voltage-Controlled Electronic Music Modules, Journal of the AudioEngineeringSociety ,Volume13,Number3.NewYork,July1965.p.1. [3]Howard,David&Angus,Jamie. AcousticsandPsychoacoustics,fourthedition. FocalPress,Oxford,2009.p.92. [4]Mayes,Lawrence.TheFieldEffectTransistorasaVoltageControlledResistor , 2002,Viewed30March2012, http://graffiti.virgin.net/ljmayes.mal/comp/vcr.htm [5]Editor:Sinclair,IanR.Chapter20,SoundSynthesisbyJenkins,Mary. Audio andHiFiHandbook ,3rdedition.Newnes,Oxford,1998.p.362. [6]Steiner,Nyle.Voltagetuneableactivefilterfeatureslow,highandbandpass modes.ElectronicDesign,vol25,SaltLakeCity,December1974.p.1. [7]Jacky,Jonathan.TwoChipgeneratorshapessynthesizer’ssounds.Electronics, Seatle.September1980. [8]Rees,Phillip. LittleMCVMiditoCVconverter .2005.Viewed30March2012. http://www.philrees.co.uk/products/miditocv.htm [9]Mansfield,Michael&O’Sullivan,Colm. UnderstandingPhysics,Chapter15.10. Wiley-Praxis,2008.
Bibliography HorowitzandHill,TheArtofElectronics.CambridgeUniversityPress,1980. Douglas,Alan&Astley,S. TransistorElectronicOrgansfortheAmateur .Pitman Press,Bath.1965. KendallWebsterSessions.Discrete/TransistorCircuitSourcemaster .Wiley.New York,1978. Huelsman, Lawrence. Active and Passive Analogue Filter Design . McGrath-Hill, Newyork,1993.
17