Arduino polyphonic synthesizer up to 32 voices! asmsynth library - make your 8-bit music

preview_player
Показать описание
This video is a presentation of the arduino library for ATmega AVR microcontrollers. With this library, you can easily create 8-bit music. Best of all, it executes 2 programs asynchronously and can generate up to 32 voices! It owes its speed to the code written in assembly and one voice is calculated in 1,2us. It can generate square, sawtooth and triangular waves. Sine wave and noise are likely to be introduced in the future. In addition, it can support the H-bridge and can be used as an amplifier for speakers. You can also control the motors if you want, maybe it's a bit of a useless function, but a nice sound will come from the motors instead of squeaking while running. In the next videos I will try to tell you something more about this library and show you how to connect and program a microcontroller. Subscribe to the channel so as not to miss the next videos! You can share this video and rate it positively if you like my work. :D

Link to download this library:
Рекомендации по теме
Комментарии
Автор

For future and current commenters, as some of the questions are repetitive. Yes, you can combine this synthesizer (or rather processor) with other components. This is the idea behind this project to create a virtual and fast synthesizer built into the processor. So, all you can do to add this synthesizer is to add the library to your sketch, and that's it. The link to the library can be found in the movie description.

Important! This library only adds a sound module, so to be able to connect a keyboard (or other hardware), you need to write your own implementation of this keyboard support in your program. So you can add midi support and connect a keyboard or other device through this communication, you can also make a keyboard yourself with buttons, you can connect potatoes, bananas or other fruit. No limits! It all depends on how you write the program.

Soon, a tutorial on how to use this library and how to assemble this system will be recorded. I hope I can do it quickly.

See you soon!

sezam
Автор

Actually I examined several sound libraries but the sounds did not match the level I want. But your library is really cool so my arduino UNO could output very nice sounds without any effort. Thanks for your great works!!

katsumiyabusaki
Автор

Such a cool project! I once tried audio PWM project with arduino, but the best i was able to do is only one voice in interrupt every 32uS.

bakisha
Автор

I hooked it up and downloaded and uploaded the code and no sound. I can't determine if I have it hooked up correctly because the video hides some wires and some are hard to see. Where is a schematic?

onthetongue
Автор

That's cool for sure. For those who desire more there's teensy.

EricBalcon
Автор

That's really cool! I've managed to fit a duophonic MIDI synth with two PPG Wave 2.2 oscillators, two LFOs and four EGs into an AtMega 328. Those chips can be really powerful if you program them right. I'm hoping to post a video about it on my channel soon, if you're interested.

jacekwieczorek
Автор

Hey Sezam, how did you use the h-bridge as an audio amplifier and then being able to control volume with a poti? Do you have The circuit diagram and the code somewhere? Any help would be appreciated

DavidGreen_de
Автор

Greetings. The following error appears in the Arduino IDE: fatal error: asmsynth.h: No such file or directory. The library was installed but the error persists. Is there an older version of this same library. Thanks.

niltonclaudio
Автор

Sounds great. I'm going to give it a try.

MrBatraaf
Автор

I just discovered your video and waw !!!
Do you think it's possible to replace the H output and the speaker by a simple female Jack and plug to a guitar amplifier ? And to trigger the sounds by a midi note ? (with a channel for the sound type ) ?

blueangel
Автор

Really cool man!! Did you put compression on to the recording or does the Arduino automatically level out the loudness as more than one note is played?

damionmortenson
Автор

can it be from guitar or piano sound output?

tutorial
Автор

Does it work with attiny85 or attiny2313?

murrrr
Автор

Congratulations, great job, could try stm32

valdeciribeiro
Автор

Imagine being blue lobster-ed by Arduino

rawexploiterp
Автор

can it turn in a playable synth with keys??

fedeboretti
Автор

hello,
why the assembly though ?
Wouldn't c/c++ language get it easier to understand and/or easier to port to other microcontrolers ?

albandaumer
Автор

Wouldn’t it be in theory better if you had only 8/16 channels max and more complicated waveforms and audio effects?

comandercrypto
Автор

Hi, This library is awesome but I have a question. am assuming this library works based on 1 bit audio. it makes complex square waves to simulate the sound of other waveforms, but I would love to generate 8 bit sound with 8 bit DAC. I found some other libraries which can output analog value (from 0 to 255, which makes it 8 bits) to 8 separate pins which then can be connected to R-2R ladder. is there a way in this library to just get analog values instead of automatically outputting it? Thanks!

Edit: so basically to narrow down my question. How did you display the wave shape in serial plotter. as you did in the other Tetris theme video.

Scrarf
Автор

shit… make this eurorack compatible :D

hc