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
  Howard Moscovitz Chez Mosc - No show tonight - sorry
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 5 [110 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
Author Message
JovianPyx



Joined: Nov 20, 2007
Posts: 1079
Location: West Red Spot, Jupiter
Audio files: 123

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:  159 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: 1079
Location: West Red Spot, Jupiter
Audio files: 123

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:  143 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: 482
Location: Toronto, Ontario - Canada
Audio files: 29

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!
_________________
jacobwatters.com
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1079
Location: West Red Spot, Jupiter
Audio files: 123

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:  51 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:  57 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: 980
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: 1079
Location: West Red Spot, Jupiter
Audio files: 123

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: 980
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: 19569
Location: The Netherlands, Enschede
Audio files: 116
G2 patch files: 317

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: 1079
Location: West Red Spot, Jupiter
Audio files: 123

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: 1079
Location: West Red Spot, Jupiter
Audio files: 123

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:  38 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 5 [110 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2, 3, 4, 5
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
Niio1

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