Re: [PD] Pd-0.40.3-extended-rc2 released - Console Window

2008-06-26 Thread Ingo Scherzinger
When the console is resized the upper part gets bigger, too. That's wasting
a lot of space. I'm on Windows. Havn't tested with Linux so far.

 

Ingo

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] worldwide weather forecast into PD

2008-06-26 Thread altern
B. Bogart(e)k dio:
 Hey there,
 
 Are you using the data for a performance or installation?
 
 I used live weather data (from an APRS packet radio gateway) parsed from
 a website.
 
 It was the worst mistake I made.
 
 The installation ran for a couple years but had four problems:
 
 1. The format of the webpage changed, I rewrote it.
 
 2. The power went down.
 
 3. The power went down again.
 
 4. The website went down.
 
 Now I know not to depend on any external infrastructure.

no it is just a set of patches that should be used in different 
situations by other people. they should be aware of this potential risks 
of live internet access. thanks for the suggestions anyway.

enrike

 Using your own weather station would be very stable (they are not as
 expensive as they sound). Or perhaps there is some more stable way to
 get at the APRS data than a website.
 
 APRS is nice because there are hundreds of weather stations all over the
 world, are interlinked by packet radio network. The problem in my case
 was the internet gateway.
 
 .b.
 
 altern wrote:
 hi

 anyone knows of an online worldwide forecast service? I am developing 
 some python scripts with Pyext external that retrieve different type of 
 data from the net into PD.

 At the moment i have been using yahoo weather, this is quite handy 
 because they have RSS feed that can be easily manipulated from python 
 and returned into PD.

 Currently i have scripts that tell me the external IP of my computer and 
   another one that uses the IP to retrieve geolocation data (lat, long, 
 nearby city, country ), using this i think i should be able to ask yahoo 
 for weather data of an specific city and country and from there access 
 the RSS.

 However I think there are some copyright issues with yahoo weather. I 
 read a notice in the HTML source of yahoo weather saying that this data 
 is not to be used without permission
  ...You are prohibited from using or repurposing this data in any way 
 without express written consent from Yahoo! ...

 I guess i could pretend i did not see the notice but maybe there is some 
 worldwide forecast service that would allow me to use the data?

 thanks

 enrike

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list

 
 


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] better tabread4~

2008-06-26 Thread Steffen Juul

On 25/06/2008, at 22.33, cyrille henry wrote:

 so finally, what should be the name of this object?

 is it ok if i remove the other test i made and to use only this one?

I think you a free to name your code what you want. And also to  
delete it. I however think people would find it interesting with a  
lib* of tabread's with different interpolation schemes.

At least i think it would be cool with a collection where also the  
interpolation methods of the others are included (fx, the SC one).

Thanks for publishing.

(* where ever its one-file-multi-class, one-class-per-file or multi- 
method-per-class.)

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] worldwide weather forecast into PD

2008-06-26 Thread altern
hi hans

thanks for the link, i checked it briefly yesterday, not sure if i will 
be able to find the part of code i need, it seems a bit too bit and it 
is C, probably easier to do it myself in python.

The weather.com city codes look like the same as weather.yahoo.com it 
seems to me that they both access the same system to get the data. thats 
interesting, i found already several weather forecast systems that are 
actually the same in the background.

enrike

Hans-Christoph Steiner(e)k dio:
 
 This program for Mac OS X gets the data from weather.com, I think:
 
 http://heat-meteo.sourceforge.net/
 
 It's open source, so you could get the parsing code.
 
 .hc
 
 On Jun 25, 2008, at 10:59 AM, altern wrote:
 
 hi

 anyone knows of an online worldwide forecast service? I am developing
 some python scripts with Pyext external that retrieve different type of
 data from the net into PD.

 At the moment i have been using yahoo weather, this is quite handy
 because they have RSS feed that can be easily manipulated from python
 and returned into PD.

 Currently i have scripts that tell me the external IP of my computer and
   another one that uses the IP to retrieve geolocation data (lat, long,
 nearby city, country ), using this i think i should be able to ask yahoo
 for weather data of an specific city and country and from there access
 the RSS.

 However I think there are some copyright issues with yahoo weather. I
 read a notice in the HTML source of yahoo weather saying that this data
 is not to be used without permission
  ...You are prohibited from using or repurposing this data in any way
 without express written consent from Yahoo! ...

 I guess i could pretend i did not see the notice but maybe there is some
 worldwide forecast service that would allow me to use the data?

 thanks

 enrike

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 
 
  
 
 
 Mistrust authority - promote decentralization.  - the hacker ethic
 
 
 


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pd extended and X11

2008-06-26 Thread Nicolas Montgermont
Hi hans  list,

I've seen that the installation of the X11 user package is necessary to 
run GEM under osx with the last 0.40-3 RC2 pd extended.
I was wondering if it's possible to explicite that on the installers 
pages (http://at.or.at/hans/pd/installers.html and in the near future : 
http://puredata.info/downloads).

As pd-extended is very useful for beginners, I think it can be difficult 
for some of them to understand the printed error in the pd console.

Maybe a line as:

To run GEM and other graphical applications, you need to install X11 first.

would be a clear and simple indication.
A link as this one
http://www.simplehelp.net/2006/10/22/how-to-install-x11-in-os-x/

could also be helpy.

Greetings,

Nicolas
 

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] text disappears in Object ?

2008-06-26 Thread ths otra
i !

Anybody knows why or have any idea: when i use [plugin~], all my text in my 
patch (in object and message ) disappears ... ?! 
in Pd version 0.40.3-extended-20080625

Thanks in advance for your council !

tranquillou,

ths


  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd extended and X11

2008-06-26 Thread Hans-Christoph Steiner

Good idea, I updated the included Readme and the FAQ entry:

http://puredata.info/docs/faq/macosx

.hc

On Jun 26, 2008, at 12:14 PM, Nicolas Montgermont wrote:

 Hi hans  list,

 I've seen that the installation of the X11 user package is  
 necessary to
 run GEM under osx with the last 0.40-3 RC2 pd extended.
 I was wondering if it's possible to explicite that on the installers
 pages (http://at.or.at/hans/pd/installers.html and in the near  
 future :
 http://puredata.info/downloads).

 As pd-extended is very useful for beginners, I think it can be  
 difficult
 for some of them to understand the printed error in the pd console.

 Maybe a line as:

 To run GEM and other graphical applications, you need to install  
 X11 first.

 would be a clear and simple indication.
 A link as this one
 http://www.simplehelp.net/2006/10/22/how-to-install-x11-in-os-x/

 could also be helpy.

 Greetings,

 Nicolas


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/ 
 listinfo/pd-list



 


Computer science is no more related to the computer than astronomy is  
related to the telescope.  -Edsger Dykstra



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd-0.40.3-extended-rc2 released - Console Window

2008-06-26 Thread Hans-Christoph Steiner


Yeah, that thing needs to be re-written from scratch, it's a big  
hack.  For the next release...


.hc

On Jun 26, 2008, at 8:41 AM, Ingo Scherzinger wrote:

When the console is resized the upper part gets bigger, too. That’s  
wasting a lot of space. I’m on Windows. Havn’t tested with Linux so  
far.


Ingo




 



I spent 33 years and four months in active military service and  
during that period I spent most of my time as a high class muscle man  
for Big Business, for Wall Street and the bankers.  - General  
Smedley Butler



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd extended and X11

2008-06-26 Thread Derek Holzer
Is this correct, that GEM now needs X11? Or is it still just PDP? If so, 
then I'll need to update the FLOSS Manual when 0.40 becomes the current 
stable Extended release.

Is there any reason for this, by the way? I always recommend GEM over 
PDP because a) it's better documented and b) it doesn't require extra 
software to be installed...

best,
D.

Hans-Christoph Steiner wrote:
 Good idea, I updated the included Readme and the FAQ entry:
 
 http://puredata.info/docs/faq/macosx
 
 .hc
 
 On Jun 26, 2008, at 12:14 PM, Nicolas Montgermont wrote:
 
 Hi hans  list,

 I've seen that the installation of the X11 user package is  
 necessary to
 run GEM under osx with the last 0.40-3 RC2 pd extended.
 I was wondering if it's possible to explicite that on the installers
 pages (http://at.or.at/hans/pd/installers.html and in the near  
 future :
 http://puredata.info/downloads).

 As pd-extended is very useful for beginners, I think it can be  
 difficult
 for some of them to understand the printed error in the pd console.

 Maybe a line as:

 To run GEM and other graphical applications, you need to install  
 X11 first.

 would be a clear and simple indication.
 A link as this one
 http://www.simplehelp.net/2006/10/22/how-to-install-x11-in-os-x/

 could also be helpy.

 Greetings,

 Nicolas


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/ 
 listinfo/pd-list
 
 
 
  
 
 
 Computer science is no more related to the computer than astronomy is  
 related to the telescope.  -Edsger Dykstra
 
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 

-- 
derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista
---Oblique Strategy # 127:
Openly resist change

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd extended and X11

2008-06-26 Thread Hans-Christoph Steiner

I think it is not correct, but I could be wrong.  X11 does come installed 
with 10.5/Leopard now.

.hc


On Thu, 26 Jun 2008, Derek Holzer wrote:

 Is this correct, that GEM now needs X11? Or is it still just PDP? If so, then 
 I'll need to update the FLOSS Manual when 0.40 becomes the current stable 
 Extended release.

 Is there any reason for this, by the way? I always recommend GEM over PDP 
 because a) it's better documented and b) it doesn't require extra software to 
 be installed...

 best,
 D.

 Hans-Christoph Steiner wrote:
 Good idea, I updated the included Readme and the FAQ entry:
 
 http://puredata.info/docs/faq/macosx
 
 .hc
 
 On Jun 26, 2008, at 12:14 PM, Nicolas Montgermont wrote:
 
 Hi hans  list,
 
 I've seen that the installation of the X11 user package is  necessary to
 run GEM under osx with the last 0.40-3 RC2 pd extended.
 I was wondering if it's possible to explicite that on the installers
 pages (http://at.or.at/hans/pd/installers.html and in the near  future :
 http://puredata.info/downloads).
 
 As pd-extended is very useful for beginners, I think it can be  difficult
 for some of them to understand the printed error in the pd console.
 
 Maybe a line as:
 
 To run GEM and other graphical applications, you need to install  X11 
 first.
 
 would be a clear and simple indication.
 A link as this one
 http://www.simplehelp.net/2006/10/22/how-to-install-x11-in-os-x/
 
 could also be helpy.
 
 Greetings,
 
 Nicolas
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/ 
 listinfo/pd-list
 
 
 
  
 
 
 Computer science is no more related to the computer than astronomy is 
 related to the telescope.  -Edsger Dykstra
 
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 

 -- 
 derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista
 ---Oblique Strategy # 127:
 Openly resist change


zen
   \
\
 \

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] text disappears in Object ?

2008-06-26 Thread Hans-Christoph Steiner


Which platform?  I think [plugin~] only really works on GNU/Linux.

.hc

On Thu, 26 Jun 2008, ths otra wrote:

 i !

Anybody knows why or have any idea: when i use [plugin~], all my text in my 
patch (in object and message ) disappears ... ?! 
in Pd version 0.40.3-extended-20080625

Thanks in advance for your council !

tranquillou,

ths


   
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

zen
   \
\
 \

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd extended and X11

2008-06-26 Thread chris clepper
On Thu, Jun 26, 2008 at 6:48 AM, Derek Holzer [EMAIL PROTECTED] wrote:

 Is this correct, that GEM now needs X11?


It is not correct.  GEM uses Carbon APIs for all drawing.

cgc
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] better tabread4~

2008-06-26 Thread Mathieu Bouchard

On Thu, 26 Jun 2008, Damian Stewart wrote:

one of the pushes to me finally learning Pd was discovering that there 
was an object called [moses], and it did what it said it did.


We need a state-saving object class named [jesus].

 _ _ __ ___ _  _ _ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] better tabread4~

2008-06-26 Thread Mathieu Bouchard

On Tue, 24 Jun 2008, Charles Henry wrote:

On Tue, Jun 24, 2008 at 9:24 PM, Mathieu Bouchard [EMAIL PROTECTED] wrote:


I don't think that more than one alternative will be necessary. For 4-point
table lookups that go through all the original points, I don't know why
anyone would aim lower than a C2 piecewise-polynomial. Unfortunately, it
would be somewhat too late to just call it [tabread4~]. Or not.

How low is too low? hmmm


I fucked up here. To get a C2 curve you may need to solve an equation 
system covering the whole table (!). Anyhow, a C1 system is fine enough 
for most uses, and it would be already much better than pd's.


The thing is that you can only match the 2nd derivatives if you let the 
1st derivatives just match but freely float. Then there will be one curve 
going through all points of the whole table supposing that the 2nd 
derivative is zero at the beginning and end of the table. Clearly this is 
a wholly different game because you need to compute a 2nd table to 
remember what the 1st derivatives are supposed to be and then you can't 
change anything in the 1st table without recomputing the 2nd table from 
scratch, or something.


When we have an interval between samples, we wish to fit a polynomial 
(because it's fast, I guess) that satisfies our constraints. We could 
specify the polynomial has the same values at x[-1],x[0], x[1], x[2] 
(tabread4~).


No, you don't set those 4 constraints because else you will get exactly 
the same polynomial that tabread4~ already figures out, and we know that 
it is not C1. You need to drop x[-1] and x[2] as conditions.



or we could set x[0],x[1] and x'[0]=(x[1]-x[-1])/2 and x'[1]=(x[2]-x[0])/2
again, 4 constraints, cubic polynomial, etc...


Seems reasonable. What I want has to have constraints on x'[0] and x'[1]. 
Those would be a possibility. The problem is that it uses a gap of 2 
samples instead of one, so it uses a blurry derivative, but the 
alternative is to have to pick between forward-difference and 
backwards-difference. The blurry derivative happens to be the average of 
the 1-sample forward-difference and backward-difference.



and x''[0]=x[1]-2*x[0]+x[-1] and x''[1]=x[2]-2*x[1]+x[0]
6 constraints, 5th degree polynomial


I think that the replacement for tabread4~ should be another cubic, so 
that it takes almost the same time to compute it. What I said about C2 was 
based on a mistaken reading of webpages trying to refresh myself on 
splines. I should've been more careful.



and if you additionally wanted it to actually go through x[-1] and
x[2], it would be 7th degree


No, you shouldn't care about matching those extra points because anyway 
only the curve between x[0] and x[1] is used. The two outer points should 
be used only to figure out what derivatives to use.



But not all possibilities are worth analyzing... I'm not even sure
what kind of method to use to narrow the field.


The blurry derivative above seems to be fine... I'd have to try it, but 
I should be working on other things now. I suppose that Cyrille already 
has everything figured out anyway. I just feel like talking about math 
sometimes... ;)


 _ _ __ ___ _  _ _ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] object name and anti aliasing technique : WAS : Re: better tabread4~

2008-06-26 Thread cyrille henry


Steffen Juul a écrit :
 
 On 25/06/2008, at 22.33, cyrille henry wrote:
 
 so finally, what should be the name of this object?

 is it ok if i remove the other test i made and to use only this one?
 
 I think you a free to name your code what you want.
yes, but i prefere a name that everybody is happy with.


 And also to delete 
 it.
well, deleting file is usually a bad idea, but the current implementation are 
only test. i dont think anyone is using them yet.
So i think there is no problem if i replace tabread4*~ with only the best of 
them.
 

 I however think people would find it interesting with a lib* of 
 tabread's with different interpolation schemes.
yes, i think we all agree that having a lib offering the choice is great, but 
how much do we need.
i don't see interest having 2 or 3 different object offering a 4 points 
interpolations.

then, it's possibile to have interpolation using more points, and also 
interpolation that offer antialiasing.

BTW : i just commited a tabosc4aa~ (aa is for anti aliasing).
this is also just a test.
it's far from perfect, but lot's better than the original tabread4~ when 
dealing with high pitch transposition.
for now, i did this with a classic 8x upsampling + biquad filter inside the 
tabread4aa~ (ok, this is more cpu intensive : about 1 to 1.5 % cpu)
before i'm doing more work on this, did anyone have experience with this?

how do other software deal with this?
(some use a Shanon interpolation, but this is hard to code in an efficient way 
+ i don't have very good result in the test i made) 

 
 At least i think it would be cool with a collection where also the 
 interpolation methods of the others are included (fx, the SC one).

i think we could have the standard tabread~ / tabread4~, a good (like the 
curent tabread4c~), and a very good (better than the curent tabread4aa~).
and maybe an extra for non realtime synthesis.
this should be made for tabread / tabosc / vd, and maybe some other i forget.

having only one object that offer many interpolation schematic is great, but 
need more work.
for now, i think it's simpler to use one interpolation schematic per object. 
(just like miller did with tabread~ and tabread4~).

so, i'm looking for a _prefix_ to use like this : 
tabread_prefix_~
tabosc_prefix_~ 
vd_prefix_~

one _prefix_ or the 4 points interpolation as describe by charles henry
and an other one for the best anti alliased interpolation i can possibly make.


cheers
cyrille


 
 Thanks for publishing.
 
 (* where ever its one-file-multi-class, one-class-per-file or 
 multi-method-per-class.)
 
 


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Spotlight Importer for OS X

2008-06-26 Thread Luke Iannini
On Fri, Jun 20, 2008 at 12:11 PM, Hans-Christoph Steiner [EMAIL PROTECTED] 
wrote:

 On Jun 20, 2008, at 2:34 PM, Luke Iannini wrote:

 On Fri, Jun 20, 2008 at 5:15 AM, Hans-Christoph Steiner
 [EMAIL PROTECTED] wrote:

 On Jun 20, 2008, at 1:55 PM, Luke Iannini wrote:

 On Fri, Jun 20, 2008 at 4:02 AM, Hans-Christoph Steiner
 [EMAIL PROTECTED] wrote:

 Does this work at all on 10.4/Tiger?

 Yes, it's configured by default to work with both 10.4 and 10.5.

 Any idea whether it would cause problems on 10.3?  That's not a make-
 or-break thing, but it would be nice if it could still work on 10.3.
 As for including the Info.plist changes in v0-40, it would need to be
 throughly tested before including it.  Currently, there are only a
 couple outstanding bugs that need to be fixed for this release
 (AFAIK), so I am really hesitant to include something totally new.

 According to this http://developer.apple.com/qa/qa2005/qa1406.html the
 public.plain-text UTI we're using existed in 10.3.  Also, this seems
 to be a transitional document for 10.310.4, and doesn't include any
 callouts except:  Note: UTIs are available in Mac OS X v10.3 Panther
 and later. Mac OS X v10.4 Tiger added many new types and integrated
 support throughout the operating system.

 So I think it won't be a problem for the keys in the plist, and in the
 future, 10.3 should just ignore the
 Library/Spotlight/PureData.mdimporter file just as it would ignore any
 other file it didn't recognize in the bundle.


 Ok, sounds like it is worth trying to add the Info.plist UTI stuff to
 this release.  Feel free to add it now to branches/pd-extended/v0-40,
 but please test it.

 .hc

Yo, sorry I didn't read that closely and thought you were comfortable
with adding the whole kit n' kaboodle, sorry about that.



 As for building it, how do you build it yourself?  That's usually a
 good starting point for adding it to the auto-build.  If it is an
 xcode project, you can use the command line tool xcodebuild.

 Yo,
 I just built in with the build button : ).  I like buttons...
 So yea, I have the project.  Looks like it builds aok with
 xcodebuild,
 thanks for the tip.  Where should I put the project folder?

 Good question. The first place I thought of is packages/darwin_app
 since it is only for things related to the Pd.app for Mac OS X.
 Maybe:

 packages/darwin_app/spotlight_importer

 Then it probalby makes sense to make a separate 'spotlight_importer:'
 target in packages/darwin_app/Makefile to build and install it.

 .hc

 Will do.
 Cheers
 Luke



 
 

 All information should be free.  - the hacker ethic





 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] more eee trouble (on xandros)

2008-06-26 Thread potax flan
hi
im trying to install extended using hans' deb package and xandros (i know
ubuntu and debian are better but i do wanna keep this)
when i launch pd from the terminal i get:
/usr/lib/pd/bin/pd-gui: error while loading shared libraries:
libtk8.4.so.0: cannot open shared object file: no such file or
directory

am i missing a library?
how to fix it?
thanks
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] object name and anti aliasing technique : WAS : Re: better tabread4~

2008-06-26 Thread Charles Henry
On Thu, Jun 26, 2008 at 12:36 PM, cyrille henry
[EMAIL PROTECTED] wrote:

 then, it's possibile to have interpolation using more points, and also
 interpolation that offer antialiasing.

 BTW : i just commited a tabosc4aa~ (aa is for anti aliasing).
 this is also just a test.
 it's far from perfect, but lot's better than the original tabread4~ when
 dealing with high pitch transposition.
 for now, i did this with a classic 8x upsampling + biquad filter inside the
 tabread4aa~ (ok, this is more cpu intensive : about 1 to 1.5 % cpu)
 before i'm doing more work on this, did anyone have experience with this?

To me, the upsampling is not a good approach for anti-aliasing.  This
means, you have to interpolate, then filter, then sample again.

But you will wind up applying your filter at a lot of points, which
will just be discarded.

In fewer steps, (I think) we can modify the interpolation function
continuously as the speed changes.  Rather than filtering on a long
signal, just filter it in place.  The part that gets tricky is that
the DFT is a lot less relevant, and you have to rely upon continuous
functions instead.

I didn't make any progress today... and friday is gone for sure :)  I
will calculate the spectrum for tabread4c~ on Saturday, I think.

I'm down with the project, but I can't really see the big picture for
a tabread/vd/tabosc lib yet.

Chuck

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] better tabread4~

2008-06-26 Thread Charles Henry
On Thu, Jun 26, 2008 at 11:18 AM, Mathieu Bouchard [EMAIL PROTECTED] wrote:
 I fucked up here. To get a C2 curve you may need to solve an equation system
 covering the whole table (!). Anyhow, a C1 system is fine enough for most
 uses, and it would be already much better than pd's.

 The thing is that you can only match the 2nd derivatives if you let the 1st
 derivatives just match but freely float. Then there will be one curve going
 through all points of the whole table supposing that the 2nd derivative is
 zero at the beginning and end of the table. Clearly this is a wholly
 different game because you need to compute a 2nd table to remember what the
 1st derivatives are supposed to be and then you can't change anything in the
 1st table without recomputing the 2nd table from scratch, or something.

I get what you're saying now.  I had to read it a couple times through
to see :)  You're referring to piecewise cubic polynomials, right?  We
would wind up with an overdetermined system of equations if we didn't
float the 1st *and* 2nd derivatives, which would come out as a linear
algebra problem of the size of the table.

but I think it gets even worse.  There could be a non-zero null space
to the problem.  There are infinite solutions to interpolate a table
full of zeros, with these conditions.  What a mess :)

 or we could set x[0],x[1] and x'[0]=(x[1]-x[-1])/2 and x'[1]=(x[2]-x[0])/2
 again, 4 constraints, cubic polynomial, etc...

 Seems reasonable. What I want has to have constraints on x'[0] and x'[1].
 Those would be a possibility. The problem is that it uses a gap of 2 samples
 instead of one, so it uses a blurry derivative, but the alternative is to
 have to pick between forward-difference and backwards-difference. The
 blurry derivative happens to be the average of the 1-sample
 forward-difference and backward-difference.

By expanding it out to more points, we could use a more accurate
calculation of the derivative.  There's always a frequency dependent
effect on the accuracy of 1st derivative approximations.

For example, backwards difference:
x' ~= x[n] - x[n-1]

X'[z] = X[z] ( 1 - z^-1)

Which has spectrum,  X'[w]=1-e^(-j*w)
|X'[w]|^2=(1-cos(w))^2+sin(w)^2,  phase (X'[w])=arctan(  sin(w)/(1-cos(w))  )

our ideal system has X'[w]=j*w

Central divided difference
x'  ~= (x[n+1] - x[n-1])/2

X'[z] = X[z] ( z  - z^-1)/2

Which has spectrum,  X'[w]=(e^(j*w)-e^(-j*w))/2

X'[w]=j*sin(w)

It still has trouble with the high frequencies.  So there might be
some value in expanding the number of points to include better
approximations.


 and x''[0]=x[1]-2*x[0]+x[-1] and x''[1]=x[2]-2*x[1]+x[0]
 6 constraints, 5th degree polynomial

 I think that the replacement for tabread4~ should be another cubic, so that
 it takes almost the same time to compute it. What I said about C2 was based
 on a mistaken reading of webpages trying to refresh myself on splines. I
 should've been more careful.

Yeah, a cubic polynomial makes the most sense for small changes.  I
haven't ever heard of people interpolating 4 points with a 5th degree
polynomial but I think I could make it work

 The blurry derivative above seems to be fine... I'd have to try it, but I
 should be working on other things now. I suppose that Cyrille already has
 everything figured out anyway. I just feel like talking about math
 sometimes... ;)

It's all good by me :)

Chuck

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list