Re: [music-dsp] resampling

2018-07-22 Thread Henrik G. Sundt
This solution, without using any low pass filters before and after the 
desimation, will generate a lot of aliasing frequencies, Kjetil!


Here is another solution:
https://github.com/intervigilium/libresample/tree/master/jni/resample

Henrik


On 22.07.2018 22:22, Kjetil Matheussen wrote:

Maybe this will give you an idea:

48khz -> 8khz:
float get_output_sample(get_input_sample){
   static int i=0;
   static float sample;

  if (i % 6 == 0)
 sample = get_input_sample();

  i++;

  return sample;
}

8khz -> 48khz:
float get_output_sample(get_input_sample){

   float ret = get_input_sample();

   for(int i=1;i<6;i++)
  get_input_sample();

   return ret;
}

Not the best sound quality though.

On Sun, Jul 22, 2018 at 9:55 PM, Alex Dashevski 
wrote:


real time

On Sun, Jul 22, 2018, 22:52 jpff  wrote:


Were you expecting real-time/time-critical resampling or offline?

___
dupswapdrop: music-dsp mailing list
music-dsp@music.columbia.edu
https://lists.columbia.edu/mailman/listinfo/music-dsp [1]


___
dupswapdrop: music-dsp mailing list
music-dsp@music.columbia.edu
https://lists.columbia.edu/mailman/listinfo/music-dsp [1]




Links:
--
[1] https://lists.columbia.edu/mailman/listinfo/music-dsp

___
dupswapdrop: music-dsp mailing list
music-dsp@music.columbia.edu
https://lists.columbia.edu/mailman/listinfo/music-dsp

___
dupswapdrop: music-dsp mailing list
music-dsp@music.columbia.edu
https://lists.columbia.edu/mailman/listinfo/music-dsp



Re: [music-dsp] Real-time Polyphonic Pitch Detection

2015-04-05 Thread Henrik G. Sundt
Here is a polyphonic pitch tracker. You could contact the developers to 
see if they are willing to adapt it to a specific need.


http://jamorigin.com/technology/

Henrik


Den 03.04.15 23:12, skrev Alex Cannon:

Hi all,

I was wondering what the state-of-the-art was with regards to real-time
polyphonic pitch-detection. The best solution for the MIREX task

achieved an accuracy of 74% but doesn't appear to be in real-time. Might
anyone know what the statistic would be for real-time solutions, or even
where I might find an implementation? Most of what I've found points to
fiddle~, am I on the right track?

Alex C.
--
dupswapdrop -- the music-dsp mailing list and website:
subscription info, FAQ, source code archive, list archive, book reviews, dsp 
links
http://music.columbia.edu/cmc/music-dsp
http://music.columbia.edu/mailman/listinfo/music-dsp


--
dupswapdrop -- the music-dsp mailing list and website:
subscription info, FAQ, source code archive, list archive, book reviews, dsp 
links
http://music.columbia.edu/cmc/music-dsp
http://music.columbia.edu/mailman/listinfo/music-dsp


Re: [music-dsp] Fwd: Array indexing in Matlab finally corrected after 30 years!

2015-04-02 Thread Henrik G. Sundt



Den 02.04.15 20:47, skrev Laszlo Toth:

On Thu, 2 Apr 2015, Phil Burk wrote:


Speaking of zero based indexing, my neighbor's street address is "0
Meadowood Drive". There was a "4 Meadowood Drive" already existing. They
left room to build one more house at the end of the street. But instead of
building a house they built two cottages. So they had to number them 0 and
2.

Weird. Here the standard solution for this is to number the new
houses as 2/a and 2/b.
I don't know how they would handle if the two new houses were built in
place of a house already numbered as 2/a...



This could be solved by numbering them 2/a and 2/@.

Well, seriously, they could be numbered 2/a and 2/c, thus not 
interferring with the existing 2/b. The ordering of the houses along the 
street would be a bit weird, but still...


Henrik

--
dupswapdrop -- the music-dsp mailing list and website:
subscription info, FAQ, source code archive, list archive, book reviews, dsp 
links
http://music.columbia.edu/cmc/music-dsp
http://music.columbia.edu/mailman/listinfo/music-dsp