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 
Live streaming at radio.electro-music.com

  host / artist show at your time
<on air> Rob Adventures in Sound
Please visit the chat
 Forum index » DIY Hardware and Software » Developers' Corner
Simple DIY dsPIC Project
Post new topic   Reply to topic Moderators: DrJustice
Page 5 of 6 [136 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Sun Nov 11, 2012 11:21 am    Post subject: Reply with quote  Mark this post and the followings unread

The last sample has clipping. The clipping came from the output amp having too much gain. This sample is the same piece, but played on the synth with lower gain and the clipping is gone.


My_Brain_Is_An_Electron.mp3
 Description:
My Brain Is An Electron

Download
 Filename:  My_Brain_Is_An_Electron.mp3
 Filesize:  1.49 MB
 Downloaded:  227 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Sun Nov 11, 2012 5:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here's a sample of what it might sound like to have 2 Harpies. I generated a recording of this sequence and then again at an octave higher. I offset the higher one in time from the lower one by some milliseconds and made this mix in Audacity.


Sometimes_I_Repeat_Myself.mp3
 Description:
Sometimes I Repeat Myself

Download
 Filename:  Sometimes_I_Repeat_Myself.mp3
 Filesize:  2.36 MB
 Downloaded:  208 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
Cynosure



Joined: Dec 11, 2010
Posts: 623
Location: Toronto, Ontario - Canada
Audio files: 34

PostPosted: Sun Nov 11, 2012 5:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

It sounds awesome. Amazing job!
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Tue Nov 20, 2012 3:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

I have two more samples. They are both from a MIDI file I adapted for the Harpie.

One has the reflection filter Fc low, the other has the setting higher.

The piece is "Entry of the Gladiators" by Julius Fucick. Many of you will recognize it. I was playing different MIDI files through the Harpie and twizzling the timbre knobs and I like the way it plays this. If you listen, I hope you like these.


Fucick_Entry_of_the_Gladiators_lower_filter.mp3
 Description:
Lower reflection filter setting
Entry of the Gladiators by Julius Fucick

Download
 Filename:  Fucick_Entry_of_the_Gladiators_lower_filter.mp3
 Filesize:  2.74 MB
 Downloaded:  113 Time(s)


Fucick_Entry_of_the_Gladiators_higher_filter.mp3
 Description:
Higher reflection filter setting
Entry of the Gladiators by Julius Fucick

Download
 Filename:  Fucick_Entry_of_the_Gladiators_higher_filter.mp3
 Filesize:  2.76 MB
 Downloaded:  115 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
elmegil



Joined: Mar 20, 2012
Posts: 1346
Location: Chicago
Audio files: 14

PostPosted: Tue Nov 20, 2012 7:52 pm    Post subject: Reply with quote  Mark this post and the followings unread

Got any Scott Joplin files? Very Happy

That sounds awesome. I know, I need to find a new adjective.
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Fri Nov 23, 2012 9:15 am    Post subject: Reply with quote  Mark this post and the followings unread

I would like to thank Tom Wiltshire (who may be a member here) and Blue Hell for their help in getting things started up with dsPIC development.
_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
elmegil



Joined: Mar 20, 2012
Posts: 1346
Location: Chicago
Audio files: 14

PostPosted: Fri Nov 23, 2012 9:20 am    Post subject: Reply with quote  Mark this post and the followings unread

And thank you for documenting your steps, so there's a chance some of us might follow (eventually...backlog.... Smile )
Back to top
View user's profile Send private message
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 20280
Location: The Netherlands, Enschede
Audio files: 143
G2 patch files: 318

PostPosted: Fri Nov 23, 2012 12:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

Glad I could help Scott, you're doing great stuff with it!
_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Mon Nov 26, 2012 4:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

I've built another DIY stripboard dsPIC with a Microchip 23K256 SPI SRAM. This is a 32 kilobyte SRAM organized in bytes. I connected the SRAM to the dsPIC with 2.5 inch wires and used no termination. The SPI SRAM operates nicely at an SPI data rate of 10 megabits per second (max for the dsPIC).

One thing I discovered is that the SRAM bar-CS pin cannot be tied low to force the IC to always be selected. The documentation could be a bit more clear about the actual function of bar-CS. They call it "chip select" which indeed it is, but it also serves to terminate the previous command. If bar-CS is simply help low, the SRAM does not function correctly. Each full transaction to or from the SRAM requires:

1) Bring bar-CS low
2) Send command
3) If write, send data. If read, accept the read data
4) Bring bar-CS high

In the documentation it is mentioned that bringing bar-CS high terminates the previously executed command. It does not clearly state that each SRAM transaction must be bracketed by a bar-CS low and bar-CS high. When bar-CS is low, it selects the SRAM and causes it to enter command mode. When bar-CS is raised, the SRAM terminates whatever it was doing (which is fine if it is timed so that the previous transaction is fully completed).

EDIT ADD:
In order for read from SRAM operations to be successful, it is necessary to make sure that the data being read from the SRAM SDO pin remains synchronized at all times. The dsPIC will shift data on SDI in whether it is a read operation or not. It is up to the driver to figure out how to do this. In my simple test program, I just wrote code to read the buffer register for each byte written to SDO. Most of these are dummy reads, but they keep the register synchronized so that when the real read data is there, it can be read out of the register. This is a bit confusing because one might think that if they are in the process of sending command data to the SRAM, then there's no valid data to read - and that is true, but if the dummy reads are not done, the SPI overrun indicator bit is set and further attempts to read the SDO line will fail. I am now looking into using DMA so that perhaps I can avoid using up CPU cycles to manage these reads. If the reads can done by the DMA controller, then this is work that gets done "for free" so to speak. (I do hope this last paragraph makes sense, it's late and I'm very tired, but wanted to add this information).

_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Tue Feb 12, 2013 3:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here is a sample of an experiment I did in C that I wish to apply to the Harpie synth. It is a bowing algorithm. In the sample, what you hear is an arpeggio that is repeated several times. Each time it repeats, the reflection filter for the karplus-strong system is "opened" allowing more high frequency energy to be retained. The model I developed allows control over the bow speed, bow pressure and KS reflection filter cutoff. In the Harpie hardware, the filter would be controlled by a pot. Bow pressure would be controlled by channel pressure and bow speed by modultion wheel.


karplus-strong_bowing_algorithm.mp3
 Description:
bowing algorithm test from C program

Download
 Filename:  karplus-strong_bowing_algorithm.mp3
 Filesize:  638.85 KB
 Downloaded:  99 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Mon Jul 29, 2013 2:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Been a long time since I've added anything.

I've made a simple synth board with a dsPIC33F (28 pin DIP), 2 TL074 and 1 6N138 to make a MIDI synth. I'm using both ASM30 and C30. Some of the synth components are coded in assembly language and all of the synth logic is written in C.

Currently, the synth consists of 2 oscillators, each oscillator drives 2 wavetables. the 2 wavetables are sinewave and distorted sinewave. Velocity pan-interpolats between the two tables. The 2nd oscillator is tuned an octave above the first and is more prominent with stronger velocity. The result is a fairly convincing flute sound. It seems that I have more CPU power (about 100 free CPU cycles), so I will add some noise for a bit more fun.

_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
Dan Lavin



Joined: Nov 09, 2006
Posts: 612
Location: Spring Lake, Mi, USA
Audio files: 21

PostPosted: Mon Jul 29, 2013 6:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

Cool Scott! Hopefully you'll post the code when complete. This sounds like it would make a nice addition to my studio! Very Happy
_________________
Synth DIY since 1977!
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Tue Jul 30, 2013 3:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi Dan,

As much as I have enjoyed posting such details in the past, I am seriously considering moving my projects into a commercial realm, so I really cannot publish the full details of this.

I would like to make this project and others like it available to people at a fair price, that being one that contains the cost and also compensates me (to some small degee) for the work I put into it. I am considering a range of options including, bare boards, assembled boards, assembled boards with a pre-programmed dsPIC IC as well as just the pre-programmed dsPIC IC.

Right now this is in the "proof of concept" stage. The testing has shown that I can embed a MIDI controller in the dsPIC along with a voice engine and the two seem to play nicely together. I am not finished with all of the "what if" stuff yet, but soon. What I have at this point is a basic functional synthesizer that sounds pretty good. I plan to post some sound samples when I get the design more complete.

_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
Dan Lavin



Joined: Nov 09, 2006
Posts: 612
Location: Spring Lake, Mi, USA
Audio files: 21

PostPosted: Tue Jul 30, 2013 7:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

That's fine Scott! I certainly don't mind paying for it. I've done that with my Shruthi, Sammich FM, bass boy and a few more things. A flute-like synth would be cool for the home studio!
_________________
Synth DIY since 1977!
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Wed Jul 31, 2013 4:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here is a sample of what is currently developed for my Additive Flute Synth.

I processed the dry synth signal with some Audacity gverb.

All of the timbre control so far is velocity. I have plans for more and better control. Currently the synth operates at 89 kHz.


dsPIC_Additive_Flute_Model_demo_000.mp3
 Description:
Some note diddles on my Additive Flute Synth (single dsPIC).

Download
 Filename:  dsPIC_Additive_Flute_Model_demo_000.mp3
 Filesize:  2.33 MB
 Downloaded:  104 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Thu Aug 01, 2013 4:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

Please note that the above sample has some rather generic settings. This is also a "budding prototype". When I did the sample I was excited that the damn thing worked at all and just did some crazy numeric trimming to get what is in the mp3. I've been told that the sound has too much "chiff" from the noise generator. This makes it sound a bit like a pipe organ thing.

I plan to have 4 pots to control how things are mixed, chiff amount would be one of those things. Such a set of controls would allow more control over exactly how this sounds. The pot inputs are already wired, I just need to buy some pots and wire them up.

Still a work in progress...

_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
elmegil



Joined: Mar 20, 2012
Posts: 1346
Location: Chicago
Audio files: 14

PostPosted: Thu Aug 01, 2013 6:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

I did get the sound of pipe organ out of several bits of it, but it still sounded cool. As far as "chiff" goes, I'll call that my vocabulary word for the day Very Happy
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Thu Aug 01, 2013 7:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, none of that sounds bad at all. This (so far) is a very basic design and I plan much more user control over the sound. I call it a flute synth, but I'd prefer it to wind up being a pipe synth, as in lots of different pipes. One of the knobs will control the amount of "chiff", another will probably control the amount of sine versus sine plus 2nd and 3rd harmonics. another knob may control the timing of the ADSRs.

At the moment I'm working on portamento and pitch wheel. Still deciding how to implement mod wheel.

_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Mon Aug 05, 2013 3:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

I've made some good progress. I've added (at least) portamento, pitchwheel and other changes.

The attached piece is just me playing a keyboard using the mod wheel as an expression tool (as well as velocity) and the right hand is trying to play melodies.

I try to "express" in the piece, as if the flautist were blowing harder and softer in an enveloped LFO fashion.


dsPIC_Additive_Flute_Model_demo_001.mp3
 Description:
Single dsPIC MIDI Synthesizer (Additive Flute Model) demo 001

Download
 Filename:  dsPIC_Additive_Flute_Model_demo_001.mp3
 Filesize:  2.33 MB
 Downloaded:  108 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 20280
Location: The Netherlands, Enschede
Audio files: 143
G2 patch files: 318

PostPosted: Wed Aug 07, 2013 6:07 am    Post subject: Reply with quote  Mark this post and the followings unread

Sounds good to me.
_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Mon Aug 19, 2013 5:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here is another piece of music as a demo. It uses the single board flute synth with the Ninja Harp (also called Harpie). The flute is a monosynth using a single dsPIC33F. The Ninja Harp is an 8 voice polysynth using 3 dsPIC33F ICs.

The music is a sequence played by Cakewalk. During the sequence, I "play" the two knobs on the Ninja Harp (which are Damping and Lowpass Cutoff) which gives the very obvious timbre changes you hear. Since these are pots, their performance data is not recorded as MIDI information.


10230818.mp3
 Description:
Ninja Harp and Jovian Floot

Download
 Filename:  10230818.mp3
 Filesize:  2.03 MB
 Downloaded:  85 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
Cynosure



Joined: Dec 11, 2010
Posts: 623
Location: Toronto, Ontario - Canada
Audio files: 34

PostPosted: Mon Aug 19, 2013 5:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

Awesome song. I love the variations that the harpie does.
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Mon Aug 19, 2013 6:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here's another take - this time I used the portamento ability of the floot.


10230818a.mp3
 Description:
Ninja Harp and Jovian Floot (with portamento)

Download
 Filename:  10230818a.mp3
 Filesize:  2 MB
 Downloaded:  92 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Mon Aug 19, 2013 6:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

I will leave you with this -- a mix of both of those tracks Smile


10230818_both_1.mp3
 Description:
Both

Download
 Filename:  10230818_both_1.mp3
 Filesize:  2.03 MB
 Downloaded:  90 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1214
Location: West Red Spot, Jupiter
Audio files: 157

PostPosted: Tue Aug 20, 2013 6:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Spent more time on the mix... I like this one better...


10230818_both_3.mp3
 Description:
Ninja Harp and Jovian Floot

Download
 Filename:  10230818_both_3.mp3
 Filesize:  2.03 MB
 Downloaded:  94 Time(s)


_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: DrJustice
Page 5 of 6 [136 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Developers' Corner
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
mps board

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