Re: [PD] constantq~ - Thomas Grill

2014-07-11 Thread Thomas Grill via Pd-list

Hi Frederico,

 I think I have all the other necessary requirements (Python and Numpy) but I 
 am not sure:
 - what version of the file I should download from 
 http://g.org/data/dev/ext/macos/pd/ . I am running on Mac OS X Snow 
 Leopard 10.6.8

start the terminal program and run the following commands:
- python —version“ - this will give you the version of your Python installation
- „which python“ will give you the location of your python installation

The major Python version is important: 2.5, 2.6. oder 2.7
and whether it is a system package (sitting in /usr/bin) or a user installed 
„local“ version (sitting in /Library/Frameworks/Python.framework)

That’s how you pick the py.pd_darwin-*.zip package. Unzip it and put it into 
pd’s extra folder.

 - where to locate the binaries to load in Pd-extended. I can only add paths 
 or startup flags but that hasn't worked—maybe I have the wrong file? I 
 include a screenshot of how my menu looks.
 

You’ll have to go to File/setup/startup flags and there add „-lib py

good luck,
gr~~~



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] canvas_makefilename() returns error

2014-07-11 Thread Ed Kelly via Pd-list
Hey Jamie,

You making a notation library?

Ed
 
Ninja Jamm - a revolutionary new music remix app from Ninja Tune and Seeper, 
for iPhone and iPad
http://www.ninjajamm.com/


Gemnotes-0.2: Live music notation for Pure Data, now with dynamics!
http://sharktracks.co.uk/ 


On Monday, 30 June 2014, 6:42, Jaime E Oliver via Pd-list 
pd-list@lists.iem.at wrote:
 



Ah, yes, I see now. 


I solved it by adding:


 x-x_canvas = canvas_getcurrent();


in _new


thanks!


J


On Jun 29, 2014, at 11:56 PM, Jonathan Wilkes jancs...@yahoo.com wrote:

It's hard to say without seeing the code.


Does x-x_canvas actually point to a canvas?  The error seems to be telling 
you it isn't.

(Consistency check errors come from the bug() function.  Generally they occur 
when an argument, struct, or struct field is checked for existence and fails 
that check.)

-Jonathan

On Sunday, June 29, 2014 9:25 PM, Jaime E Oliver jaime.oliv...@gmail.com 
wrote:
 


Yes, 


in the main struct x_canvas is created as:


t_canvas *x_canvas;


So, I think that is not the problem.



J









On Jun 29, 2014, at 8:00 PM, Jonathan Wilkes jancs...@yahoo.com wrote:

Well, it expects a t_canvas *, so if you send it something else it will 
trigger the error.


-Jonathan




On Sunday, June 29, 2014 8:47 PM, Jaime E Oliver via Pd-list 
pd-list@lists.iem.at wrote:
 


Hi all, 

I am trying to use the canvas_makefilename() function in g_canvas.c

I am calling it like this: 

static void lilypond_write(t_lilypond *x, t_symbol *s) {
    char
 buf[MAXPDSTRING];
    canvas_makefilename(x-x_canvas, s-s_name, buf, MAXPDSTRING);
}

but when I send the object a message such as [write test.txt( or similar, I 
get:

error: consistency check failed: canvas_getenv
Bus error: 10

The method is set up like this:
    class_addmethod(lilypond_class, (t_method)lilypond_write, 
gensym(write), A_SYMBOL, 0);

Anybody has any
 suggestion?

best,

J

PS Sorry
 for pestering everyone with this, but there is little documentation on some of 
the functions in Pd. Perhaps this thread belong in the Pd-Dev 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


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


[PD] peek at a pd object's data

2014-07-11 Thread Jonathan Wilkes via Pd-list
If I have a t_gobj* for an object on a Pd canvas, and I know its size, 
how would I go about returning a list of bytes for that object's struct?


I'm sure this is nearly useless because of pointers and padding, but it 
might be fun.


Best,
Jonathan

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