here is the basic example i showed last week – noise in the left channel, sine 440 in the right.
assignment #3 – music 174a
the idea of this project is to record at least 3 different instruments (a drum kit is considered a single instrument) with microphones to create a complete recording of a piece or song. quality counts. strive for fullness and detail.
3-5 minute piece
1 use at least 3 different microphones
2 majority of tracks should be miked (some electronic instruments allowed)
3 use close and distant miking
4 make at least two overdubs
5 at least 5 edits, and at least 10 tracks
6 do a basic rough mix
no effects or plugins with the following exception:
– acoustic effects can be used (hallway reverb, room mic, etc.)
you must present your piece in 10th or finals week, playing the piece, explaining what you did and answering questions.
you should place the session in the 174a folder, with a separate stereo interleaved soundfile with the final edit/rough mix.
you should also hand in documentation as follows:
– microphone/instrument diagram
– track listing with mic, settings
– take listing with time, description, notes
work in the following groups
Grant Parker Hovander – James Forest Reid – Tracy Nicole Levick
Crystal Jiao – Matthew Harrison Rice – Joyce Hwayoung Park
William Joseph-Glen Carlisle – Gregory Tazmond Farley
John Anthony D’Agostini – Kostyantyn Chumakov – Aldo Marcel Mojica
Camden Robert Greenwood – Salvador Zamora – Cordane Omari Richardson
Cory Jonathan Banh – Christopher Patrick Loree
Raymond S Lim – Chloe Jessica Bari – Yidai Li
Camille Angela Latzke – Caleb Michael Hess – Chi Zhang
Jacob Michael Ugalde – Francis Kyle Galang – Jorge Alberto Jiron Villarreal
Daniela Andrea Chaparro – Kenroe Ervin Ang – Lizbeth Rios
Here is the project from today’s class. Sample playback simply requires creating a pointer to the samples at the address used in FLASH (0x08080000 in this case), creating an offset for the first sample played, and incrementing this value until reaching the last sample to be played.
To write samples in the STM32F4 FLASH (we will write in the second half of FLASH from 0x08080000 to 0x080FFFFE)
- prepare a sound file by making it a 16 bit mono WAV at 48k sample rate
- there are only 524288 bytes, so limit the sample to 262144 samples or 5.4 seconds
- save the sample
- using Hexfiend, strip off the WAV header (everything up to the word ‘data’ and the 4 bytes after that)
- save as a new file with the suffix “.bin”
- alternatively open WAV with SoundHack and save as Headerless, 16bit byte swap and “.bin” suffix
- make sure OpenOCD is running and connected to your board
- use telnet in a terminal window to connect to OpenOCD – “telnet localhost 4444″
- make sure STM32F4 is halted with “reset halt”
- write into FLASH with command “flash write_image erase filename.bin 0x08080000″
- restart your programs with “reset run”
here is my PDF with a few popular filter types:
In class we will add a filter or two.
I am aware that most of my examples have been for the STM32F4Discovery board. This time I have coded it up for the STM32F746Discovery, and there is a little touchscreen meantone scale organ built in.
Use the blue button to switch between sine-saw-square-triangle. All formulas in the code, and most all of my code is in main.c for convenient browsing.
Details discussed next Tuesday.
Download link: f746disco-audio
Here’s an example we can look at for a few classes
assignment #2 – music 174a
record a solo acoustic instrument that is not piano 1:30 to 3 minutes
1. choose 2 of the following techniques, choose techniques which compliment the style of music.
- -use 2 close microphones
- -use a close microphone and distant microphone
- -use a stereo pair
- -use a stereo pair and close microphone
2. record on separate labelled tracks in protools
3. document your project, describe why you used each microphone, why you chose the positions you choose, describe the sound of each microphone. note the position and type of microphones used for each track
4. mix down to a stereo track in protools
5. save everything to a folder named with your last names and “a2”. put this folder in the 174a folder on the class drive
6. present in class, each person will need to talk about what they did
7. quality of recording will be part of the grade
work in the following groups
1) Raymond S Lim – Crystal Jiao – John Anthony D’Agostini
2) Grant Parker Hovander – Camden Robert Greenwood
3) Cory Jonathan Banh – Camille Angela Latzke – Jacob Michael Ugalde
4) Daniela Andrea Chaparro – William Joseph-Glen Carlisle – Chloe Jessica Bari
5) Matthew Harrison Rice – Kostyantyn Chumakov – James Forest Reid
6) Salvador Zamora – Christopher Patrick Loree – Caleb Michael Hess
7) Francis Kyle Galang – Kenroe Ervin Ang
8) Gregory Tazmond Farley – Yidai Li – Joyce Hwayoung Park
9) Aldo Marcel Mojica – Tracy Nicole Levick – Cordane Omari Richardson
10) Chi Zhang – Jorge Alberto Jiron Villarreal – Lizbeth Rios
Due Tuesday Week 7 – November 14th
Today we will be talking about the 2 built in DAC channels in the STM32F4/7 – how to feed them with DMA, and demonstrating a simple sine wave generator.
Here is the project for Eclipse: f4disco-dac