Detune Pedal (Based off Octaver code)

9 years 5 months ago #308 by Phaedrus74

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in to join the conversation.

ElectroSmash - Detune Pedal (Based off Octaver code) - Electro Smash
9 years 5 months ago #310 by Phaedrus74

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in to join the conversation.

9 years 5 months ago #312 by Ray
Thank you very much for your contribution!!! :guitarfende :guitargibso :guitarsg: :woohoo:

Please Log in to join the conversation.

9 years 4 months ago #318 by ZagatoZee
I came here looking for exactly this kind of program also with the intention of using it with Rocksmith (however I'll be playing guitar, not bass).

How have you found it?
Can you use a dial to adjust the number of steps the pedal will pitch shift?
Can it pitch up as well as down? (If my guitar is setup for Eb, could I use this code to change to E standard as well as D or C standard as needed?)
Does it only work in full steps? (ie, can you use it to get around retuning for a song that is in A:447 ?)

Please Log in to join the conversation.

9 years 4 months ago - 9 years 4 months ago #319 by Phaedrus74

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in to join the conversation.

9 years 4 months ago #320 by Phaedrus74
Reply part 2

About adding intervals.

As I said in my previous post, it is absolutely possible to add more intervals, but a huge "if then" statement is expensive (computationally speaking) and I currently use a cut down version to mitigate the delay.

If you want to add intervals: Variable "POT0" contains the position of the Potmeter if this is "zero" the potmeter is turned all the way left, if it contains the value "4096" it is turned all the way to the right. So in theory you could define 4096 pitchshift intervals. Given the processing delays you would incur that might not be feasible. Also I dont think the program would fit in the Due's memory.

My advice would be to mess around with the code, if you tell windows to "listen to" the Rocksmith cable you should hear the notes you play and this will help you in determining the sample skip intervals you need.

About continuous pitchshifting.

This would require a different method than is used here, and without using a hexaphonic pickup you would be restricted to single note playing.

This method would first have to determine the root-frequency being played.
Then apply some form of frequency modulation to pitchshift it an arbitrary interval.
And finally output it.

This is not trivial (and the reason real Guitar Synthesisers are so bloody expensive :) ) and would take a smarter person than me to program.

If you have more questions about the code, don't hesitate to ask.
The following user(s) said Thank You: Ray, ZagatoZee

Please Log in to join the conversation.

9 years 4 months ago #323 by ZagatoZee
I hit the button to order the shield yesterday. It'll be 2 weeks before it gets to me however - so plenty of time to do some more thinking and devising exactly what I need / want and how to go about it.

Thanks for the breakdown.

Please Log in to join the conversation.

9 years 4 months ago #324 by Phaedrus74
Cool! Well have fun putting it together, and ifyou have anymore questions you know where to find me :)

Please Log in to join the conversation.

9 years 1 month ago #362 by ZagatoZee
OMG!!!!
Thank you so much.
Finally got my pedalshield all working (100% user error) and just cranked out some C# standard tuned songs on a E-standard guitar.
I had to tune to correct around 20 cents that the pot didn't seem to have the adjustment capacity to tweak - but YES!

Fear Factory on an E-standard guitar........ Love it!
Thanks for writing this code.

Please Log in to join the conversation.

9 years 1 month ago #368 by Phaedrus74

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in to join the conversation.

Time to create page: 0.088 seconds