electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Arduino
BassMaster 85
Post new topic   Reply to topic
Page 1 of 2 [26 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Sun Mar 18, 2018 3:31 am    Post subject: BassMaster 85 Reply with quote  Mark this post and the followings unread

Hello!

My project based on Digispark - ATTiny 85 16MHz arduino programmable.

The main idea is that it's possible to use two PWM outputs for DDS. One of them will be the main wave generator, other will be the envelope shaper.

But I could't find any simple, but good VCA, utill i saw elektrouwe 7052A circuit in this topic: http://electro-music.com/forum/post-405863.html#405863

In MIDI interface you can use channels to tell ATTiny 85 what kind of waves to generate i.e. 1st channel - sine, 4th channel - square, 5th channel - white noise and so on.

Here is short sample (triangle & pulse - lead, square - bass): https://www.youtube.com/watch?v=YfB4YF5tCFE

It was recorded with soviet 561LN2 chip, 4069 sounds not so bright.

BassMaster 85 have just 8kHz bitrate, but LPF and analog VCA helps to eliminate dizzy digital noise.

Here is the circuit diagram. I still not sure, thal levels between ATTiny 85 and TDA 7052 are OK, because triangle is not always triangle, and square wave is not always sharp.

I want to make envelope follower on 1/2 of 4069, and mix this envelope signal to the LPFcontrol via vactrol. Is it a good idea?

Links:
https://github.com/heartscrytech/DigisparkMIDI - DigiMIDI library
https://janostman.wordpress.com/cheap-diy-usb-midi-to-cv-interface/ - how to use DigiMIDI library
http://aeeprojects.blogspot.ru/2011/09/filters-with-cd4069.html - 4069 filter circuits


bassmaster_circuit.jpg
 Description:
BassMaster 85 circuit diagram
 Filesize:  121.22 KB
 Viewed:  99 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

bassmaster_circuit.jpg



Last edited by Hammer on Mon May 07, 2018 1:31 am; edited 3 times in total
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Sat Mar 24, 2018 12:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

BassMaster 85C (chimera) because it is 3/4 digital, 1/4 analog.

Cutoff is driving by ATTiny85, resonance is still manual. JFETs for LPF are soviet again 2П303A, because I haven't others around.

I will post full code a bit later, it's still very dirty.

Check the sound!


bassmaster_circuit_c.jpg
 Description:
 Filesize:  108.49 KB
 Viewed:  66 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

bassmaster_circuit_c.jpg



BMS85_Test_saw.mp3
 Description:

Download
 Filename:  BMS85_Test_saw.mp3
 Filesize:  379.96 KB
 Downloaded:  112 Time(s)


BMS85_Test_square_saw.mp3
 Description:

Download
 Filename:  BMS85_Test_square_saw.mp3
 Filesize:  352.46 KB
 Downloaded:  105 Time(s)

Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Sun Apr 08, 2018 1:49 am    Post subject: Reply with quote  Mark this post and the followings unread

Trying to make sound "brighter". I've made another one SVF, but with additional feedback from BP output.

Then I've made "Most simple VCF on earth" to simplify circuit. Now i'ts possible to make my synth in size of credit card.

All three filters sounds and circuit:


bassmaster_circuit_ct.jpg
 Description:
 Filesize:  100.73 KB
 Viewed:  65 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

bassmaster_circuit_ct.jpg



BMS85_Test_stereo_LPF_CT.mp3
 Description:

Download
 Filename:  BMS85_Test_stereo_LPF_CT.mp3
 Filesize:  606.41 KB
 Downloaded:  96 Time(s)


BMS85_Test_stereo_LPF_SVF.mp3
 Description:

Download
 Filename:  BMS85_Test_stereo_LPF_SVF.mp3
 Filesize:  450.78 KB
 Downloaded:  87 Time(s)


BMS85_Test_stereo_LPF_SVF_2.mp3
 Description:

Download
 Filename:  BMS85_Test_stereo_LPF_SVF_2.mp3
 Filesize:  526.79 KB
 Downloaded:  92 Time(s)

Back to top
View user's profile Send private message
petegaggs



Joined: Jan 04, 2018
Posts: 22
Location: Cambridge, UK
Audio files: 1

PostPosted: Tue Apr 10, 2018 9:50 am    Post subject: Reply with quote  Mark this post and the followings unread

this is very cool, you have managed to make something that sounds really good with very few parts
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Wed Apr 11, 2018 7:15 am    Post subject: Reply with quote  Mark this post and the followings unread

I hope so! Thank you a lot!

I'll be back soon with full circuit and code.
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Mon May 07, 2018 1:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Prototype soldered:


IMG_0867.jpg
 Description:
 Filesize:  224.64 KB
 Viewed:  39 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

IMG_0867.jpg


Back to top
View user's profile Send private message
Mynasru



Joined: May 11, 2018
Posts: 2
Location: Netherlands

PostPosted: Fri May 11, 2018 3:32 am    Post subject: Reply with quote  Mark this post and the followings unread

Hammer wrote:
I hope so! Thank you a lot!

I'll be back soon with full circuit and code.


Super nice project!! Any updates on the code and circuit diagram? Can't wait to build this Very Happy
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Fri May 11, 2018 10:22 am    Post subject: Reply with quote  Mark this post and the followings unread

You know, I was stucked with VCF. This "Most simple VCF on earth" is very noisy. And I can't understand corellation between the lead envelope and LPF envelope to make it more "moogy".

Anyway, here you will find the code, but it's still very raw.

In ZIP you will find corrected library for USB MIDI, original I've got here, thanks to heartscrytech for great work: https://github.com/heartscrytech/DigisparkMIDI

When you upload sketch into Digispark, your PC will find new device. In FL Studio set a port for MidiStomp, I use port #5. Open attached example for FL Studio.

Channel #1 - sine
Channel #2 - triangle
Channel #3 - saw
Channel #4 - square
Channel #5... - effects

Decay is not working now. Dig the code, you will find envelope tables for lead and for filter.

Combining white noise and other waveshapes, it's possible to make new instruments! Let me know, if you will make something new!


bassmaster_fl.jpg
 Description:
 Filesize:  62.42 KB
 Viewed:  34 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

bassmaster_fl.jpg



BASSMASTER.zip
 Description:

Download
 Filename:  BASSMASTER.zip
 Filesize:  184.77 KB
 Downloaded:  42 Time(s)

Back to top
View user's profile Send private message
Mynasru



Joined: May 11, 2018
Posts: 2
Location: Netherlands

PostPosted: Fri May 11, 2018 1:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hammer wrote:

Anyway, here you will find the code, but it's still very raw.

Sweet, thank you! I'll try it out.
Back to top
View user's profile Send private message
StormB



Joined: Aug 15, 2013
Posts: 18
Location: Germany

PostPosted: Mon May 14, 2018 1:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi
i have built the Bassmaster 85CT from your last Post
after upload the code into the Attiny85 i check the functions and
I can switch between the Waveforms Nice Cool and
I can play various Notes but the
Attack and Release pots don't work
if I turn the pot which one goes to pin 1 of the Attiny85 (A0)
over the half the Attiny lost her connection to USB if I turn
the pot back the bassmaster go on!
thanks for this work
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Mon May 14, 2018 2:06 am    Post subject: Reply with quote  Mark this post and the followings unread

Hello, StormB!

It's mean, that your AtTiny 85 is working properly!

A0 - reset pin. You are resetting your chip by the pot. There are two versions of Digispark, with unlocked reset pit (you may flash it with USBasp), and with locked by fuses. Locked version could be flashed only by high voltage programmer, but it lets you to use reset pin as input / output.

In your version, you can use only one pot.

In code change:

#define ENVELOPE_ATTACK A0 // Pot
#define ENVELOPE_DECAY A1 // Pot

To:

#define ENVELOPE_ATTACK A1 // Pot
#define ENVELOPE_DECAY A0 // Pot

And it will be possible to attenuate attack. I'm using single pot too.

Also, you can make a switch between Digispark and VCF - very useful!
Back to top
View user's profile Send private message
StormB



Joined: Aug 15, 2013
Posts: 18
Location: Germany

PostPosted: Mon May 14, 2018 2:59 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi
i have change the inputs now the Attack pot is working Very Happy

i upload the Sketch with my Arduino (Arduino as ISP)

it is possible to make the release shorter
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Mon May 14, 2018 3:19 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, find in code:

ADC_LFO = 32;

Increase this number. Than higher number, than shorter decay.
Back to top
View user's profile Send private message
StormB



Joined: Aug 15, 2013
Posts: 18
Location: Germany

PostPosted: Wed Jun 06, 2018 12:19 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi Hammer,
it is possible to Change the Attack Pot to Decay Pot ?
think is a better Feature as Attack
Thanks
StormB
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Wed Jun 06, 2018 12:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, it's possible/

Find:

if (PLAY == HIGH) // ATTACK

And before it add:

ADC_LFO = 800;

It will give you fixed attack, bigger number - faster attack.

Find:

if (PLAY == LOW) // RELEASE

And before it add:

ADC_LFO = analogRead(ENVELOPE_ATTACK);
if (ADC_LFO < 4) ADC_LFO = 4;

Now I have "soviet Moog", analog synthesizer "Ritm-2". And now I can model filter envelope. So, I think that the code will be updated )
Back to top
View user's profile Send private message
StormB



Joined: Aug 15, 2013
Posts: 18
Location: Germany

PostPosted: Wed Jun 06, 2018 9:24 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi
it this right
i have disable

//ADC_LFO = analogRead(ENVELOPE_ATTACK);
//if (ADC_LFO < 4) ADC_LFO = 4;
and
//ADC_LFO = 32;

Code:

//ADC_LFO = analogRead(ENVELOPE_ATTACK);
//if (ADC_LFO < 4) ADC_LFO = 4;
ADC_LFO = 800;
if (PLAY == HIGH) // ATTACK
{
if (envelopeINDEX <256>> 2;
envelopeINDEX = envelopeACC >> 7;
envelopePWM = pgm_read_byte(&adsr[envelopeINDEX]);

if (envelopePWM < _envelopePWM){envelopePWM = _envelopePWM;}
}
else {envelopePWM = 255;}
_envelopePWM = envelopePWM;
}

//ADC_LFO = 255 - analogRead(ENVELOPE_DECAY);
//if (ADC_LFO < 16) ADC_LFO = 16;

//ADC_LFO = 32;
ADC_LFO = analogRead(ENVELOPE_ATTACK);

if (ADC_LFO < 4) ADC_LFO = 4;
if (PLAY == LOW) // RELEASE
{
Thanks
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Wed Jun 06, 2018 9:28 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, this is right. If you want to make decay not so "fast", use:

ADC_LFO = analogRead(ENVELOPE_ATTACK) >> 3;
Back to top
View user's profile Send private message
StormB



Joined: Aug 15, 2013
Posts: 18
Location: Germany

PostPosted: Wed Jun 06, 2018 9:39 am    Post subject: Reply with quote  Mark this post and the followings unread

hi
i have upload the sketch and now after I plug the bass master into USB I have always a tone that never stopp....
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Wed Jun 06, 2018 9:53 am    Post subject: Reply with quote  Mark this post and the followings unread

Try this code.


BASSMASTER_85CT_DECAY_ONLY.zip
 Description:

Download
 Filename:  BASSMASTER_85CT_DECAY_ONLY.zip
 Filesize:  5.44 KB
 Downloaded:  25 Time(s)

Back to top
View user's profile Send private message
StormB



Joined: Aug 15, 2013
Posts: 18
Location: Germany

PostPosted: Wed Jun 06, 2018 10:00 am    Post subject: Reply with quote  Mark this post and the followings unread

hidiho
I would have a mistake between 2 cable Embarassed
the code is running
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Sat Jun 09, 2018 1:52 am    Post subject: Reply with quote  Mark this post and the followings unread

My experience with Ritm-2 shows me that BassMaster should have standalone filter EG. It needs a new filter. Can you recommend some good 5V filter circuit? Or better to go to the bipolar power supply?

https://www.youtube.com/watch?v=XrTw4pIZMgs
Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Mon Jun 25, 2018 6:06 am    Post subject: Reply with quote  Mark this post and the followings unread

I think that laser cutted vinyl is good for case and deck building!


IMG_0967.jpg
 Description:
 Filesize:  764.95 KB
 Viewed:  11 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

IMG_0967.jpg


Back to top
View user's profile Send private message
Hammer



Joined: Mar 13, 2018
Posts: 37
Location: Russia, Zhukovsky
Audio files: 11

PostPosted: Thu Aug 09, 2018 3:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

I want to convert BassMaster into something more useful. 5V USB power is very noisy, LPF is noisy, 8kHz DDS synthesis is very noisy...

So, what I want to do:

1. Extrnal dual power supply.
2. Make VCO more analog.
3. Make good LPF.
4. Play MIDI file from SD card.
5. Make it compatible with RhythmMaster 85.
6. Keep it all as simple as it possible.

I've started with dual power supply. I've just soldered together cheap MT3608 DC-DC Step Up converter and virtual ground circuit (it's very similar to RITM-2 power supply) of Sijosae: https://tangentsoft.net/elec/vgrounds.html

Tested with op amp saw VCO - no any noise!!!


PS_dual.jpg
 Description:
 Filesize:  954.52 KB
 Viewed:  2 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

PS_dual.jpg


Back to top
View user's profile Send private message
ixtern



Joined: Jun 25, 2018
Posts: 10
Location: Poland

PostPosted: Mon Aug 13, 2018 1:18 am    Post subject: Reply with quote  Mark this post and the followings unread

Hammer wrote:
I want to convert BassMaster into something more useful. 5V USB power is very noisy, LPF is noisy, 8kHz DDS synthesis is very noisy...

So, what I want to do:

1. Extrnal dual power supply.
2. Make VCO more analog.
3. Make good LPF.
4. Play MIDI file from SD card.
5. Make it compatible with RhythmMaster 85.
6. Keep it all as simple as it possible.

I've started with dual power supply. I've just soldered together cheap MT3608 DC-DC Step Up converter and virtual ground circuit (it's very similar to RITM-2 power supply) of Sijosae: https://tangentsoft.net/elec/vgrounds.html

Tested with op amp saw VCO - no any noise!!!

Nice piece of work. As you have dual power supply range of possible circuits is much wider than with +5V only.
Attaching simple VCO and VCF diagrams, may will be some help. Also simple +5V VCF from gasboss, don't know if any use of it.
I haven't made any of them, just collecting schematics Smile


schmitzbits_CMOS 4007 filter and VCA_vcf4007_s.gif
 Description:
 Filesize:  17.74 KB
 Viewed:  2 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

schmitzbits_CMOS 4007 filter and VCA_vcf4007_s.gif



3046_vco_832.gif
 Description:
 Filesize:  1.16 MB
 Viewed:  1 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

3046_vco_832.gif



28538_lunetta_filter_1N4148_1.gif
 Description:
 Filesize:  31.41 KB
 Viewed:  1 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

28538_lunetta_filter_1N4148_1.gif


Back to top
View user's profile Send private message
ixtern



Joined: Jun 25, 2018
Posts: 10
Location: Poland

PostPosted: Mon Aug 13, 2018 1:23 am    Post subject: Reply with quote  Mark this post and the followings unread

One more simple VCF I've found - with CMOS ICs.


cmos_sallen_key.gif
 Description:
 Filesize:  4.72 KB
 Viewed:  138 Time(s)

cmos_sallen_key.gif


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 2 [26 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Arduino
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use