• shahxc

    Hello everyone,

    I'm trying to build a simple sample player triggered by the computer keyboard.
    I have first used [tabplay~] to play samples loaded in arrays, but now I want to be able to change the sample speed so I'm using [tabread4~].
    I have two play modes : loop and only once, I have set the system for loop and it works fine, (I can change the speed, etc) I just have stuff to adjust to trigger the thing.
    My problem now is to be able to play the sample only once (with the adjusted speed).
    I don't find any solutions, even only to play it at normal speed only once. I have followed the technique used in this thread
    http://puredata.hurleur.com/sujet-580-tabread4-question
    and I made something like that :

                                 [0, $1 $2 <
                                 |
                                 [line~]
                                 |
                                 [tabread4~ mytable]
    

    Where $1 is the sample size given by [soundfiler] and $2 is the sample length in miliseconds (sample size * 44100).
    And it doesn't play the file right, it cuts it or play faster or slower.
    And I don't have a clue on how to play it in the speed selected from the loop mode.

    Sorry, my patch is a little bit messy.

    Thank you.

    http://www.pdpatchrepo.info/hurleur/sampleplayer.zip

    posted in technical issues read more
  • shahxc

    Thanks al lot, I've rebuilt my patch from scratch and it works great. Your advices have been very helpful.

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!