synth workshop 5/12/2020
Workshop last part supplement video: *on mapping.
Step 1 : Go to the Logic drawer to locate blocks "if"..."then", also, the 0=0 block for the condition.
Step 2: Find the pins drawer to locate the digital read pin blocks, put it inside the logic in previous step. (this is for the button we connected, you may set the corresponding pins being connected)
Step 3: Find the Music drawer, then locate the playtone blocks, replace the tone with "analog read pin" in the pins drawer. Also set the related pins being connected. For example, P1.
Step 4: Since we have 2 buttons and 2 knobs as default, you may duplicate the whole set and change the pins. It saves time from finding the blocks again.
Step 5: We want accurate pitch to be controlled by the potentiometer(knob), so it is sometimes necessary to use the mapping function. Use it as the tone, put the analog read inside. The low and high value remains unchanged for using the whole cycle of the knob. The to low and high part represents the pitch(tone) frequency being mapped.
SUPPORTING HARDWARE CONNECTION GUIDE:
BUTTONS & POTENTIOMETERS
make sure the connections of the parts include 3 things:
The positive charge /3V/VCC
The negative charge/0V/GND
The signal connecting to the corresponding pins
The Expansion Board (Kitronik)
There should be enough pins added to the positive and negative track, if one wishes to attach more buttons and knobs to the synth without using the breadboard.
The Speaker Unit
The method uses a bc548 transistor to boost the signal of the Pin0 audio, when using V1 microbit.