Re: [PD] How to navigate a long sound file in vanilla PD

2015-04-01 Thread William Huston
Wow, I just want to say while I appreciate the link to
B16.long-varispeed.pd, that's some gnarly code :)

I sort-of get the principle,
but no idea how this works.

This will keep me busy. I image I will have to study the
source code to understand the 4-point interpolation of tabread4~.
I am looking forward to this study!

When I understand this long-table patch,
the Phase Vocoder, and Martin Brinkmann's Chaosmonster,
then I feel I will move into advanced PD status :)

PS: I am very grateful to Miller for PD,
and to all of the helpful people in this amazing community!
This is most fun with computers I've had in many years!
(and I'm an old-timer).

BH in Binghamton NY, USA

PS/OT:

I have been always hacking with audio. Stated doing
sound-on-sound reverb and tape loops with by brother's
Marantz reel-to-reel deck when I was about 12 y/o.
(He would have killed me had he known!)

To give you an idea, this was my first computer:
*http://tinyurl.com/8mq9nyw http://tinyurl.com/8mq9nyw*
4k of RAM, monochrome, no disk drive, and *no lower case*.

I wrote a hack in BASIC to read/write the cassette port and
do PWM to sample and playback human speech and make tones.
We didn't have 24-bit audio, not 16-bit, or even 8 bit audio.

*We had glorious 1-bit audio! On/off.*


*This is what I've been through. *

*Still we were able to make amazing sounds with it!*


*To have PD now is fulfilling a dream I've been having for 35 years! *


On Tue, Mar 31, 2015 at 11:17 AM, Miller Puckette m...@ucsd.edu wrote:

 Hi all -

 There's an example in B16.long-varispeed.pd that shows how you can use
 offsets
 into long arrays - this allows you to use the signal input within a smaller
 range (ideally  1 second) to get accurate addressing.

 cheers
 Miller

 On Tue, Mar 31, 2015 at 11:07:52AM -0400, William Huston wrote:
  I have a related question.
 
  I am intermediate PD programmer, about 9 months into patching.
  I really love PD, despite some quirks.
 
  The single most annoying issue I have found so far is the inability for
 PD
  to accurately index into large arrays.
 
  The way this manifests is very curious! I first noticed high frequency
  noise at maybe 6 min. into an array, which gets worse as you move into
 the
  file. At 20 min, it's really horrible.
 
  I would say the root cause is
 
  a) lack of a long integer datatype. Friends, sometimes you really want
  ints, like accurately indexing into an array, and
 
 
  b) lack of precision in (short) floats.
 
  People on the FB group promptly told me this is a well-known issue, and
  directed me to PD-double. This sounds like a wonderful project, however
 it
  seems it is only beta, and breaks several of the modules in extended.
 
  So I am wondering 2 things:
 
  1) What solutions have people come up with for accurately reading big
  arrays at audio rate, using either pd-extended or vanilla?
 
  (I have considered breaking the big file up into smaller arrays, but this
  is cumbersome).
 
  2) What is the long-term goal at solving this problem?
 
  Thanks :)
 
 
 
 
 
 
 
 
  On Tue, Mar 31, 2015 at 5:51 AM, peiman khosravi 
 peimankhosr...@gmail.com
  wrote:
 
   Sorry, forgot to reply to all.
  
   Hello,
  
   I had this problem in maxMSP recently and found a working solution.
 Note
   that I was only on a laptop so I don't know how relevant this is to
 your
   question. Below is the solution I found on the Max forum (I don't have
 the
   link right now but it should come up on google).
  
   1- Read the file [silently] from disk (using sfplay~ or equivalent),
 at 50
   times the original speed and record the output into a buffer that is 50
   times smaller than the original file.
  
   2- You can navigate through this smaller buffer and multiply the
 output by
   50 to get the correct time pointer into the original file. I then read
 the
   original file from the disk, instead of loading it into a buffer.
  
   3- Since I'm making my patch for concert playback, I have put in place
 a
   checking mechanism that looks for an existing 'waveform' file. (The
 patch
   automatically names these originalFileName.wave.aif.) If it exists, the
   waveform file is read into the buffer, otherwise, the loaded soundfile
 is
   'analysed'.
  
   I can send you my patch if you are interested. I don't see any reason
 why
   this can't be implemented in PD. Although the graphical scrolling
 might be
   slower in PD. I'd be interested to know if this works in PD.
  
   Best,
   Peiman
  
  
  
  
   *www.peimankhosravi.co.uk http://www.peimankhosravi.co.uk || RSS
 Feed
   http://peimankhosravi.co.uk/miscposts.rss || Concert News
   http://spectralkimia.wordpress.com/*
  
   On 31 March 2015 at 10:18, Stefan Tiedje stefantie...@googlemail.com
   wrote:
  
   Hello list,
   might well be the first post here, though I am well experienced in
   Max/MSP...
   As there is no way to get Max patches run on mobile devices, I want
 to do
   it in PD using the MobMuPlat apps for Android/iOS.
   The task 

Re: [PD] unexpected sudden logouts using Pd on Ubuntu

2015-04-01 Thread Jonghyun Kim
It was Intel GPU driver issue. I have to upgraded to Ubuntu 14.10, because
Intel has deprecated their driver for 14.04.

Upgrage to 14.10, and install their latest gpu driver, then issue
disappeared.

Interesting thing is, the sudden logout happened only when I'm using Pd.
Strange.

Thanks for the clew Claude!

https://01.org/linuxgraphics/downloads/2015/intelr-graphics-installer-linux-1.0.8

Issue resolved.

Many thanks,
Jonghyun Kim

On Thu, Mar 19, 2015 at 10:46 PM, Jonghyun Kim agitato...@gmail.com wrote:

 thanks for the info.

 Intel HD 4000 graphics driver causes this problem?, however why crash only
 when I'm using Pd...? strange...

 many thanks,
 akntk

 On Thu, Mar 19, 2015 at 9:53 PM, Claude Heiland-Allen cla...@mathr.co.uk
 wrote:

 Looks like possibly the same driver issue as

 http://forum.pdpatchrepo.info/topic/7614/solved-pd-crashes-x-server



 On 19/03/15 12:41, Jonghyun Kim wrote:

 FYI, I had same problem before with Pd-0.45-4-1 (downloaded from Ubuntu
 software center)

 On Thu, Mar 19, 2015 at 9:36 PM, Jonghyun Kim agitato...@gmail.com
 wrote:

  hi list,

 i have strange behavior using Pd.

 When I do some patching in Pd, Ubuntu suddenly logouts, and I loss my
 current data.

 I don't know what causes this problem.

 Strange thins is, this unexpected sudden logout occurs only when I'm
 using
 Pd. Another application doesn't occur this problem.

 I attached the Pd patch.

 thanks,
 akntk
 

 Software:
 Pd-0.46-5 (from miller's home page) build from source

 Ubuntu 14.04 amd64
 Linux umi 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:06:50 UTC 2015
 x86_64 x86_64 x86_64 GNU/Linux

 Video Card: Intel HD
 akntk@umi:~$ lspci -v -s `lspci | awk '/VGA/{print $1}'`
 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core
 processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
 Subsystem: Lenovo Device 21f6
 Flags: bus master, fast devsel, latency 0, IRQ 45
 Memory at f000 (64-bit, non-prefetchable) [size=4M]
 Memory at e000 (64-bit, prefetchable) [size=256M]
 I/O ports at 5000 [size=64]
 Expansion ROM at unassigned [disabled]
 Capabilities: access denied
 Kernel driver in use: i915

 =

 Download link of the Pd patch:

 https://drive.google.com/folderview?id=0B42bn7ncw918fkVFR0JYVHNsbVh5V
 zVFaHBXUWlTdGV6YzRtWGhFS0h5ODFOZ0RISU5Bd3cusp=sharing





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



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



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


Re: [PD] wiimote motionplus with low_speed gives always 1 1 1

2015-04-01 Thread Jonghyun Kim
[wiimote] works on ubuntu 14.04, but on 14.10 it doesn't work.

it works only with buttons. neither acceleration nor motionplus.


On Wed, Apr 1, 2015 at 3:02 AM, Jonghyun Kim agitato...@gmail.com wrote:

 AFAIR (but keep in mind that it has been a *long* time), the low_speed
 message gives you a boolean value (1 or 0), whether the angle_rate
 values should be interpreted as high-speed or low-speed. since i
 haven't found any documentation what high-speed vs low-speed
 actually means in hard numbers, this has been exposed to the patch.


 I see why you said high-speed vs low-speed.

 If the speed is high(0), then divide by 4. If it is low(1), then divide by
 20. (what you did in pd-patch)

 I'm searching documentation of the high/low speed, but I don't know these
 divide factors(4 and 20) are good number yet.

 Orientations from motionplus seems works, but I have to calibrate it too
 often. For example, at first time, the range was -180 to 180, but after
 some time, it change to -210 to 150, or below...

 Here is a document about it, but I'm not good at electronics...

 http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Wii_Motion_Plus#Data_Format

 LG,
 Jonghyun Kim

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