[PD] hardcoded samplerate in audio example

2023-04-22 Thread Patco
Hello,

 I've found something awkward in all fft patches from 03.audio-examples that 
leads to mistakes.

Samplerate is hardcoded to 44100, so this wouldn't work correctly when opening 
soundfiles having another samplerate. 

 This should be corrected by using [soundfiler] second outlet instead of 
hardcoding samplerate.


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


Re: [PD] midi file into [text sequence]?

2023-04-22 Thread Peter P.
Thanks Miller, Christof, Patko,

midi2sco looks really good, I also found midi2csv which does a similar
job, keeping the midi pitch notation but possibly specifying time in
midi ticks, hence needing some polishing of the results as well.

best, Peter

* Miller Puckette  [2023-04-22 13:26]:
> I've been using the "midi2sco" program to convert MIDI files to csound
> scores and then either reading the csound straight into a text object (read
> -c message so end-of-line terminates lists) - and/or writing simple awk
> scripts to change csound pitch notation back into MIDI pitches and convert
> times to milliseconds.
> 
> cheers
> 
> Miller
> 
> On 4/22/23 12:57, Christof Ressi wrote:
> > You can read the MIDI file with [mrpeach/midifile], output everything in
> > a loop and save the MIDI messages in a [text] object. You just need to
> > calculate the appropriate time delta between messages.
> > 
> > Christof
> > 
> > On 22.04.2023 07:46, Peter P. wrote:
> > > Hi,
> > > 
> > > starting to use [text sequence] instead of [qlist] more and more, I am
> > > wondering how difficult it might be to write an external script that
> > > converts .mid file into .txt usable by [textfile sequence]?
> > > 
> > > Has anyone attempted something similar already? What would be the
> > > easiest language and/or libraries to do this on DebianGNU Linux?
> > > 
> > > Thanks!
> > > Peter
> > > 
> > > 
> > > 
> > > ___
> > > Pd-list@lists.iem.at mailing list
> > > UNSUBSCRIBE and account-management -> 
> > > https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!FX8XWZP4VHyBnFI5axOis2enTs45LT8_Vo4SMqvp-FvMqA5qk59VeeqWL6VVeoi70CbHzKynWW-sEg$
> > 
> > 
> > 
> > 
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management -> 
> > https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!FX8XWZP4VHyBnFI5axOis2enTs45LT8_Vo4SMqvp-FvMqA5qk59VeeqWL6VVeoi70CbHzKynWW-sEg$
> 
> 
> 
> 
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list



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


Re: [PD] midi file into [text sequence]?

2023-04-22 Thread Miller Puckette
I've been using the "midi2sco" program to convert MIDI files to csound 
scores and then either reading the csound straight into a text object 
(read -c message so end-of-line terminates lists) - and/or writing 
simple awk scripts to change csound pitch notation back into MIDI 
pitches and convert times to milliseconds.


cheers

Miller

On 4/22/23 12:57, Christof Ressi wrote:
You can read the MIDI file with [mrpeach/midifile], output everything 
in a loop and save the MIDI messages in a [text] object. You just need 
to calculate the appropriate time delta between messages.


Christof

On 22.04.2023 07:46, Peter P. wrote:

Hi,

starting to use [text sequence] instead of [qlist] more and more, I am
wondering how difficult it might be to write an external script that
converts .mid file into .txt usable by [textfile sequence]?

Has anyone attempted something similar already? What would be the
easiest language and/or libraries to do this on DebianGNU Linux?

Thanks!
Peter



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!FX8XWZP4VHyBnFI5axOis2enTs45LT8_Vo4SMqvp-FvMqA5qk59VeeqWL6VVeoi70CbHzKynWW-sEg$ 





___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://urldefense.com/v3/__https://lists.puredata.info/listinfo/pd-list__;!!Mih3wA!FX8XWZP4VHyBnFI5axOis2enTs45LT8_Vo4SMqvp-FvMqA5qk59VeeqWL6VVeoi70CbHzKynWW-sEg$ 





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


Re: [PD] midi file into [text sequence]?

2023-04-22 Thread Christof Ressi
You can read the MIDI file with [mrpeach/midifile], output everything in 
a loop and save the MIDI messages in a [text] object. You just need to 
calculate the appropriate time delta between messages.


Christof

On 22.04.2023 07:46, Peter P. wrote:

Hi,

starting to use [text sequence] instead of [qlist] more and more, I am
wondering how difficult it might be to write an external script that
converts .mid file into .txt usable by [textfile sequence]?

Has anyone attempted something similar already? What would be the
easiest language and/or libraries to do this on DebianGNU Linux?

Thanks!
Peter



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




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


Re: [PD] midi file into [text sequence]?

2023-04-22 Thread Patko nytkophilus
If tout are familiar with f# scripting you may like to try this library:
https://github.com/smoothdeveloper/zcore-midi-fs

Le sam. 22 avr. 2023, 11:12, Patko nytkophilus  a
écrit :

> Hello, I'm using mrpeach/midifile and I'm happy with it. Sometimes I
> process the output or read the content of midifile with text buffers, and
> write back to midifile.
>
> Le sam. 22 avr. 2023, 07:53, Peter P.  a écrit :
>
>> Hi,
>>
>> starting to use [text sequence] instead of [qlist] more and more, I am
>> wondering how difficult it might be to write an external script that
>> converts .mid file into .txt usable by [textfile sequence]?
>>
>> Has anyone attempted something similar already? What would be the
>> easiest language and/or libraries to do this on DebianGNU Linux?
>>
>> Thanks!
>> Peter
>>
>>
>>
>> ___
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] midi file into [text sequence]?

2023-04-22 Thread Patko nytkophilus
Hello, I'm using mrpeach/midifile and I'm happy with it. Sometimes I
process the output or read the content of midifile with text buffers, and
write back to midifile.

Le sam. 22 avr. 2023, 07:53, Peter P.  a écrit :

> Hi,
>
> starting to use [text sequence] instead of [qlist] more and more, I am
> wondering how difficult it might be to write an external script that
> converts .mid file into .txt usable by [textfile sequence]?
>
> Has anyone attempted something similar already? What would be the
> easiest language and/or libraries to do this on DebianGNU Linux?
>
> Thanks!
> Peter
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list