Absolute beginner - looking to build an electronic version of the Great Highland Bagpipe !! #971
-
I am of somewhat advanced years with only a basic knowledge of electronics and Arduino programming - but negligible knowledge of how to create music 'electronically'. I am no longer fit enough to play the real Great Highland Bagpipes and I want to create a portable alternative which creates sounds as close to the real thing as is possible. Charles |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I did not have any background in audio. After my retirement I was picking up Microcontrollers as hoppy and thought that doing audio on these devices might be cool. To implement a good sounding instrument is indeed quite a big task for a beginner: How to eat an elephant ? I don't know anything about Bagpipes, so I try to provide an answer how I would approach the topic for a generic instrument and let you decide what makes sense. Basic Functionality
Improving the quality
Optimisations
This suggestion should be valid whatever tool you decide to use: Be it Mozzi, Maximilian or my AudioTools. You might also want to have a look at the available Arduino Bagpipe projects. I think that the ESP32 is a good platform with a lot of Program Memory that you might consider as your first choice to store your recordings and the I2S interface together with an external DAC guarantees some good quality sound. |
Beta Was this translation helpful? Give feedback.
-
Many thanks. A lot to learn – taking my first bite by looking at Audacity and how to create a sound sample.
Best
Charles
From: Phil Schatzmann ***@***.***>
Sent: 22 August 2023 15:34
To: pschatzmann/arduino-audio-tools ***@***.***>
Cc: cws1745 ***@***.***>; Author ***@***.***>
Subject: Re: [pschatzmann/arduino-audio-tools] Absolute beginner - looking to build an electronic version of the Great Highland Bagpipe !! (Discussion #971)
I did not have any background in audio. After my retirement I was picking up Microcontrollers as hoppy and thought that doing audio on these devices might be cool. To implement a good sounding instrument is indeed quite a big task:
How to eat an elephant ?
In small pieces!
I don't know anything about Bagpipes, so I try to provide an answer how I would approach the topic for a generic instrument and let you decide what makes sense.
Basic Functionality
* I would start with a recording of individual tones of a specific instrument. This gives the advantage that you can choose your favourite instrument, or even gives you the option support more than one instrument. Audacity might be a good free tool.
* You would play a tone when a button is pressed and stop when it is released. This [example|(https://github.com/pschatzmann/arduino-audio-tools/tree/main/examples/examples-stream/streams-memory_raw-i2s) would be your starting point
* You need to add the logic to be able to play multiple tones at the same time. In the AudioTools this topic is called mixing. I guess it will take some effort to get this right. This [example]/(https://github.com/pschatzmann/arduino-audio-tools/blob/c5e38e96ab26788f1c1623eb3e25fc12fe87ae67/examples/examples-audiokit/streams-memory_pcm-mixer-audiokit/streams-memory_pcm-mixer-audiokit.ino#L26) might guide you.
Improving the quality
* Sometimes the beginning and the end of a tone has some distinctive sound pattern. You can try to model this by splitting the recording into beginning, the middle which can be repeated endlessly and the end. Or you can try to apply some kind of ADSR envelope.
* On some instruments the tone depends on the force that is applied. This can be modelled by applying a different volume or by using different recordings. My gut feeling is, that this might not be relevant for bagpipes.
Optimisations
* By decreasing the sample rate you reduce the needed memory to store your recordings. You can also use 8 bits instead of 16 or use some encoded audio to reduce it even further.
* You can try to find out if you can just use the recording of 1 note and generate the other notes dynamically by resampling or with the help of pitch shifting.
This suggestion should be valid whatever tool you decide to use: Be it Mozzi, Maximilian or my AudioTools. You could also try to do some short cuts by just using some ready made projects.
—
Reply to this email directly, view it on GitHub <#971 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMOTK4SORVLQEM3U4TDOJ5DXWS7MJANCNFSM6AAAAAA3ZQ3QBQ> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AMOTK4U6RIRGAF5O3R4H2X3XWS7MJA5CNFSM6AAAAAA3ZQ3QBSWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAM6S6Q.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
I did not have any background in audio. After my retirement I was picking up Microcontrollers as hoppy and thought that doing audio on these devices might be cool. To implement a good sounding instrument is indeed quite a big task for a beginner:
How to eat an elephant ?
In small pieces!
I don't know anything about Bagpipes, so I try to provide an answer how I would approach the topic for a generic instrument and let you decide what makes sense.
Basic Functionality