Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - matrix12x

Pages: 1 ... 11 12 [13] 14
181
preenfm2 and preenfm3 / Re: More Effects
« on: August 07, 2014, 01:16:39 AM »
Please note, I did not get the "bits" knob working yet, only the "frequency" knob. Please excuse the randomness of my coding, I was trying to implement different versions of the bit crunchers that were on the music DSP site. Based on my variable names, you can find the version of the code that I plucked bits and pieces from. When I clean it up i will add proper attribution to the comments in the code.

Basically I did this sloppy mess, with the proper adjustments to the other files to add the menu items:

In the file named Timber.cpp

   case FILTER_BIT:
    {

       float *sp = this->sampleBlock;
       float localv0L = v0L;
       float localv1L = v1L;
       float localv0R = v0R;

   float phasor=0;
       float BitsTwo = params.effect.param1;
   int bits=BitsTwo;
        float step;
       float Frq = params.effect.param2 * PREENFM_FREQUENCY;
       float SR = PREENFM_FREQUENCY;
   float NormFreq = Frq / SR;

       for (int k=0 ; k<BLOCK_SIZE ; k++) {
      if (unlikely(fxParam1 = 0)) {
          fxParam1 = 0.01;
       }

      step = 1 / (pow(2.0, bits));
// left side

          localv0L = (*sp) + localv0L;

      phasor = phasor + NormFreq;
             if (phasor >= 1.0){
         phasor = phasor - 1.0;   
              localv0L = step * floor(localv0L / step + 0.5 ); //quantize
                localv0L = localv0L * fxParam3;
      }

      (*sp) = ((*sp) + localv0L) * mixerGain;


          if (unlikely(*sp > ratioTimbres)) {
             *sp = ratioTimbres;
          }
          if (unlikely(*sp < -ratioTimbres)) {
             *sp = -ratioTimbres;
          }


          sp++;    



182
preenfm2 and preenfm3 / Re: More Effects
« on: August 06, 2014, 11:46:13 PM »
Hi Xavier,
I did not post it yet because it was not quite done yet and sounded a little crazy, but still interesting.

I can post it if you would like.

183
preenfm2 and preenfm3 / Re: More Effects
« on: August 05, 2014, 07:42:59 PM »
Thanks. I am still playing around and am not sure I have it quite right. But it does sound cool.

184
preenfm2 and preenfm3 / Re: More Effects
« on: August 02, 2014, 12:27:19 AM »
I posted it on gihub as a branch off the original, which I believe I did correctly. you can just download and compile.

or pm me with your e-mail and I'll send you the compiled os file.

185
preenfm2 and preenfm3 / Re: idea: More waveforms
« on: July 31, 2014, 12:59:11 AM »
Hi teevee,
I had added a formant waveform and compiled my own copy of the os. It was super easy, and everyone on this forum was extremely helpful.

see this post:
http://ixox.fr/forum/index.php?topic=63412.0

186
Xavier,
Thanks for all the awesome work!!!!

I am on OSX 10.9.4 and it works great. Although, when I hit "Pull" I get a high pitched whine for a half second or so if I was playing notes. If I understand, there is no OSX VST yet, correct?

187
preenfm2 and preenfm3 / Re: operator feedback
« on: June 24, 2014, 02:08:13 AM »
Is that DC filter similar to http://www.musicdsp.org/archive.php?classid=3#135

also, unrelated, but what does "localv0L" and "localv0R" do?

188
preenfm2 and preenfm3 / Re: operator feedback
« on: June 17, 2014, 08:45:21 PM »
awesome. thanks. That site was great. I found it a while back while looking to code a sample rate/bit rate reducer.

Are there any other good sites or books to read about coding in C for music applications such as the PreenFM2? Are there any differences when coding for an ARM vs the ATMega?

How much ram do we have remaining in the PreenFM2?

Also, to remove the DC offset created by operator feedback, would we subtract the mean from the signal?
Thanks,
John

189
preenfm2 and preenfm3 / Re: operator feedback
« on: June 17, 2014, 01:52:41 AM »
Thanks.

In code what is the difference between PM and FM? Are there any good articles on this?

I had thought that an instantaneous change in phase caused an instantaneous change in frequency?


190
preenfm2 and preenfm3 / operator feedback
« on: June 14, 2014, 02:21:21 PM »
I was just looking over the DX7 algorithms and noticed that some allowed an operator to have feedback. I was wondering how we could do this on the PreenFM2?

Assuming we had a FEEDBACK parameter, would it be something like:
oscState1.frequency =  freq1 * voiceIm1 + oscState1.mainFrequencyPlusMatrix;
         float car1 = currentTimbre->osc1.getNextSample(&oscState1) * FEEDBACKValue * currentTimbre->mix1 * div2TimesVelocity;

191
preenfm2 and preenfm3 / Re: waveforms
« on: June 14, 2014, 03:51:04 AM »
Awesome!! got it working. added the new waveform.
heads up, on my mac, when I went to add the name to the oscShapeNames list in SynthState.cpp:189, my text editor kept on changing the character used for " and it would not compile. it took me a while to figure that  the character was being changed.

So basically what I did was sample a waveform I liked to use as raw material on audacity. Trimmed it to one cycle. Made it mono. used sample data export. I made sure that the single cycle was 1024 samples based on the sample rate and the frequency/pitch of the sound. Then I added a space and commas after every single entry using Excel.

Then I added this data to the waveforms.c. I then changed #define NUMBER_OF_WAVETABLES in Common.h to 9.

The I edited waveforms.java. Then added the type to enum OscShape in SynthState.h (before _LAST) and the name to the oscShapeNames list in SynthState.cpp:189.

I compiled. . . and yay!! lots of fun.






192
preenfm2 and preenfm3 / Re: waveforms
« on: June 12, 2014, 03:55:19 AM »
Same here.
overclocked, no waveforms in CCM. no filter. Algo 27 and 28. held down 2 keys.
I did not notice any glitches either.


I started adding my own wave and got this when I compiled. Any ideas?
src/synth/Osc.cpp:108:1: error: too many initializers for 'WaveTable [8]'


193
preenfm2 and preenfm3 / Re: waveforms
« on: June 11, 2014, 02:54:57 AM »
after some trial and error I got it to compile. I am still getting some errors while compiling, but I still seem to get my bin file, and it installs fine and seems to run fine.

I started with just removing "__attribute__ ((section(".ccm")))" to get the current waveforms to run in regular memory.

How many simultaneous notes should I try and play before expecting a drop out?

194
preenfm2 and preenfm3 / Re: waveforms
« on: June 11, 2014, 12:05:53 AM »
I am installing the tool chain right now and should compile tonight. I'll let you know how it goes.

195
preenfm2 and preenfm3 / Re: waveforms
« on: June 10, 2014, 02:17:27 AM »
Quick question, what is the tool chain that is required?
I am on OSX.

Pages: 1 ... 11 12 [13] 14