hi,
you might say i want to imitate other [ commercials] sequencers, but i needed a pianoroll object to control a sequencer.
hope there ain't no patent on that.
so, here it is, available for pd->linux, the port to win should be easy.
cheers,
Yves/ http://ydegoyon.free.fr
PS : i'm glad to be free of releasing externs anytime, not waiting for a package update.
hi Yves,
nice! Would you consider simplifying installation (and saving many of the future maintenance headaches), by using a dynamic loading scheme for your tcl code?
First you may run './tcl2c.py < pianoroll.tk > pianoroll.tk2c', where tcl2c.py is attached below (a very simple script), and then add a single line to your pianoroll.c file:
void pianoroll_setup(void) { post( pianoroll_version ); +#include "pianoroll.tk2c"
Krzysztof
Yves Degoyon wrote:
...
you might say i want to imitate other [ commercials] sequencers, but i needed a pianoroll object to control a sequencer.
#! /usr/bin/env python
import sys, string
def escaped(l): for c in '\"' + "'": words = string.split(l, c) l = words[0] for word in words[1:]: l = l + '\' + c + word return l
for line in sys.stdin.readlines(): l = string.strip(line) if l: if l[0] == '#': print '//' + l[1:] else: print 'sys_gui("' + escaped(line[:-1]) + '\n");' else: print
hi,
Would you consider simplifying installation (and saving many
of the future maintenance headaches), by using a dynamic loading scheme for your tcl code?
ok, i've simplified installation for grid and pianoroll, it' now the standard :
make clean make make install
krystof's solution helped in that process but i preferred to rewrite his script in bash instead of python to avoid "broken python" error reports.
the trick used there should be included in external's authoring HOWTO. details are available in archives.
cheers,
Yves/
PS : neutrino's laptop show tomorrow in Paris [ 15 rue saint fiacre - 75002 m° bonne nouvelle ] 15h-22h
not in that order :
_______ boca raton _ zona fumatori
_______erich zahn/re;pot _ o;lamm _ mjc
_____syncopated elevators legacy _ rawakari
__________________ jimmy t _ stuntman 5 -
________________cicerobuck
___________________________kow-mori -
hi,
is there any chance of somebody adapting the grid and pianoroll objects to windows? i'm not a programmer, and i'm not sure how to go about porting them myself. but, i have some programming experience, so if it's not too complicated and somebody could give me instructions i'd be willing to give it a shot.
matt.
----- Original Message ----- From: Yves Degoyon To: Krzysztof Czaja Cc: pd-list@iem.kug.ac.at Sent: Saturday, February 16, 2002 4:28 PM Subject: Re: [PD] [announce][hackers channel] pianoroll
hi,
Would you consider simplifying installation (and saving many
of the future maintenance headaches), by using a dynamic loading scheme for your tcl code?
ok, i've simplified installation for grid and pianoroll, it' now the standard :
make clean make make install
krystof's solution helped in that process but i preferred to rewrite his script in bash instead of python to avoid "broken python" error reports.
the trick used there should be included in external's authoring HOWTO. details are available in archives.
cheers,
Yves/
PS : neutrino's laptop show tomorrow in Paris [ 15 rue saint fiacre - 75002 m° bonne nouvelle ] 15h-22h
not in that order : _______ boca raton _ zona fumatori _______erich zahn/re;pot _ o;lamm _ mjc _____syncopated elevators legacy _ rawakari __________________ jimmy t _ stuntman 5 - ________________cicerobuck ___________________________kow-mori -
hi,
is there any chance of somebody adapting the grid and pianoroll objects to windows?
unfortunately, the modifications i did today for installation process makes the port to windows harder ( do you have any bash or python or a decent scripting language on windows ?? ).
the code itself should not be that hard to port, only the installation process is.
i don't do windows, not for programming, sorry.
good luck anyway and don't hesitate to ask questions.
cheers,
Yves/
On Sun, 17 Feb 2002 05:16:09 +0100, Yves Degoyon wrote:
unfortunately, the modifications i did today for installation process makes the port to windows harder ( do you have any bash or python or a decent scripting language on windows ?? ).
the code itself should not be that hard to port, only the installation process is.
there is a python version for windows and bash is in cygwin.
On Sunday 17 February 2002 16:36, smoerk wrote:
On Sun, 17 Feb 2002 05:16:09 +0100, Yves Degoyon wrote:
unfortunately, the modifications i did today for installation process makes the port to windows harder ( do you have any bash or python or a decent scripting language on windows ?? ).
the code itself should not be that hard to port, only the installation process is.
there is a python version for windows and bash is in cygwin.
You can run bash on its own. You only need bash.exe and the cygwyn1.dll.
mik
Perhaps a tcl script on windows to do the installation?
On Sun, 17 Feb 2002, Yves Degoyon wrote:
hi,
is there any chance of somebody adapting the grid and pianoroll objects to windows?
unfortunately, the modifications i did today for installation process makes the port to windows harder ( do you have any bash or python or a decent scripting language on windows ?? ).
the code itself should not be that hard to port, only the installation process is.
i don't do windows, not for programming, sorry.
good luck anyway and don't hesitate to ask questions.
cheers,
Yves/
hi Yves,
what I meant was rather to use the trick during a release phase, not during installation. That is, I would rather have users get tcl code in an already sys_gui()'d form.
Krzyszt-too-often-too-terse-of
Yves Degoyon wrote: ...
unfortunately, the modifications i did today for installation process makes the port to windows harder ( do you have any bash or python or a decent scripting language on windows ?? ).
hi,
what I meant was rather to use the trick during a release phase, not during installation. That is, I would rather have users get tcl code in an already sys_gui()'d form.
might be an option, so, for windows port just comment line :
./tcl2c.bash < extern.pd > extern.tk2c
in the Makefile.
This means that you can't modify tk code, but, for a port, it's ok ...
cheers,
Yves/