Wave Table Synthesizer(Occilator only). I will make Envelope Generator and MML for play music.
Project: Synthesizer. It is using embed to Chip Tune Synthesizer for NXP LPC1768.
At First
Prepare an amplifier with volume wheel. The amplifier wire at pin1 to pin18(D/A converter) from IC Clip or Breedboard.
Play
Check out this project and deploy your mbed. And then push the reset key.
You hear a sound from amplifier.
Modify
First step, you can see main.cpp. This source file plays an occilator with "wait()". Modify frequency at
#define ADD 0x2000000
on the top of source.
Occilator select 7 waveforms.
- OCC_NONE,
- OCC_SQUARE,
- OCC_SINE,
- OCC_SAW,
- OCC_WT,
- OCC_NOISE,
- OCC_TRIANGLE,
WT means WaveTable Synthesizer.Use "setWave()" function at first.Wavetable will copy in instance.
Change there for waveform.
gOccilator[0]=Occilator::getInstance(OCC_SAW,INTERRUPT_TIME_US);
INTERRUPT_TIME_US depends sampling rate. Don't change.
Total volume of D/A converter is setting this place.
gOccilator[0]->setVolume(volume);
By the way, this sample output 0 to 1V(not3.3V) for deforming distortion.
ToDo
- Envelope generator and LFO(with delay)
- MML(Music Macro Language)
- Sample Song(I will make a Japanese Anime music,perhaps)
Project Goal Date
I will make for Comic Market 90(2016.Aug. in Tokyo).And these thing will be written in a Doujinshi.
History
Adjust volume saw.
2016-02-10, by 117Florian [Wed, 10 Feb 2016 10:55:08 +0000] rev 10
Adjust volume saw.
Added ???????? wave.And check these wabe form from occiloscope.
2016-02-10, by 117Florian [Wed, 10 Feb 2016 10:12:57 +0000] rev 9
Added ???????? wave.And check these wabe form from occiloscope.
Noise,Saw,Sine????WT????????????Sine????????????
2016-02-09, by 117Florian [Tue, 09 Feb 2016 05:39:46 +0000] rev 8
Noise,Saw,Sine????WT????????????Sine????????????
WaveTable???????WT???sin?
2016-02-09, by 117Florian [Tue, 09 Feb 2016 02:57:27 +0000] rev 7
WaveTable???????WT???sin?
???????????????????????????????????
2016-02-08, by 117Florian [Mon, 08 Feb 2016 22:30:53 +0000] rev 6
???????????????????????????????????
?????3.3V??1V?????
2016-02-02, by 117Florian [Tue, 02 Feb 2016 18:42:49 +0000] rev 5
?????3.3V??1V?????
??????????getInstance?????????????
2016-01-30, by 117Florian [Sat, 30 Jan 2016 09:52:44 +0000] rev 4
??????????getInstance?????????????
????????????????????????????????
2016-01-30, by 117Florian [Sat, 30 Jan 2016 09:26:02 +0000] rev 3
????????????????????????????????
??????????????; D/A?????????????????????
2016-01-22, by 117Florian [Fri, 22 Jan 2016 05:26:04 +0000] rev 2
??????????????; D/A?????????????????????
???????????????????????????????????????????????????????
2016-01-21, by 117Florian [Thu, 21 Jan 2016 10:24:33 +0000] rev 1
???????????????????????????????????????????????????????