• tegleg

    in the sampler oneshot example whats the easiest way to change the frequency?
    or how would i split this so i can change le+007 at will?

    heres the bit in question

    |;phase 1, 4.1e+008 le+007; cutoff 1(

    thanks

    posted in technical issues read more
  • tegleg

    is there an if statement in pd?

    eg

    if (value < 0) do something

    posted in technical issues read more
  • tegleg

    making a sequencer and i cant work out how to hold the pitch at the last activated step.

    one part of it sends a bang that triggers the vol envelope.
    the other part sends the pitch.

    is there something that will hold the pitch (number) until it receives a bang?

    that make sence?
    thanks

    posted in technical issues read more
  • tegleg

    hello

    after quite a bit of messing around i finally managed to get pd-for-android working yay!
    but now i have no idea where to start. im new to pd but not to programming.
    ive had a look at the demo's that come with it and dont really know what im looking at.
    i can see messages are sent and functions are called from the android java to the pd patch but after that is completely bewildering.

    are there any examples or tutorials that show the very basics of whats going on?
    for instance, press a button in android and play a sample, or a slider to change pitch of an oscilator.

    also is there a code reference for pd?
    would be quite handy.

    thanks :)

    posted in technical issues read more
  • tegleg

    thanks guys very usefull.
    is there anywhere i can see a list of all the syntax available in pd?

    posted in technical issues read more
  • tegleg

    thank you so much sinewave :)
    thats near enough to get me going, i just need to get used to how things are done in pd and that has helped a whole lot.
    cheers

    posted in technical issues read more
  • tegleg

    for the sake of making it easier on myself m going with your solution sinewave.
    but the problem is that every step fires the envelope.
    what would i do to make it so if the pitch is 0 the envelope doesnt fire?

    posted in technical issues read more
  • tegleg

    wow thanks sinawave
    im still getting my head round pd.
    your solution of finishing the envelope before the next step is nice but not what im after.
    ill have another mess around and see what i can come up with.

    posted in technical issues read more
  • tegleg

    seems the gate sequencer in there doesnt work how i thaught either
    it sends a bang every step, hmmmm

    posted in technical issues read more
  • tegleg

    ok thanks
    its not all wired up as im just working out how to do it.
    hope you can see what im trying to do.

    http://www.pdpatchrepo.info/hurleur/seqtest.pd

    posted in technical issues read more
  • tegleg

    ill try explain a bit better. its basically like this atm.
    [metro]
    | |
    | [select 0 1 2 3]
    | |
    [select 0 1 2 3] |
    | |
    [float] [bang]
    | |
    [outlet pitch] [outlet gate]

    for example, the first step sends a bang to trigger the volume envelope.
    at the same time it sends the pitch.
    the problem is if step 2 doesnt send a bang and the envelope hasnt ended, it sends the pitch from step 2.
    i need to stop step 2 from sending the pitch, and instead hold the pitch at step 1's value.

    posted in technical issues read more
  • tegleg

    a few days of testing and ive narrowed down the problem area.
    when i add PdCore to a new project it crashes when i try to set up the receiver.
    all im doing is adding the code from PdTest and seeing whats what.
    the app runs fine as long as i dont include the code below

    private PdReceiver receiver = new PdReceiver() {

    public void receiveBang(String source) {
    // TODO Auto-generated method stub

    }

    public void receiveFloat(String source, float x) {
    // TODO Auto-generated method stub

    }

    public void receiveSymbol(String source, String symbol) {
    // TODO Auto-generated method stub

    }

    public void receiveList(String source, Object... args) {
    // TODO Auto-generated method stub

    }

    public void receiveMessage(String source, String symbol, Object... args) {
    // TODO Auto-generated method stub

    }

    public void print(String s) {
    // TODO Auto-generated method stub

    }

    };

    posted in technical issues read more
  • tegleg

    oooh nooooo lol
    i restarted eclipse and i get pdcore.apk error again.
    so what could be causing this? or what will fix it more like?

    edit:
    what will fix it is project properties - android
    remove pdcore library, apply
    add pdcore, apply

    i still get the error but at least the app opens

    posted in technical issues read more
  • tegleg

    wehay it works again :)
    thanks ThisIsNotMe

    nowhere have i seen that branch mentioned.
    maybe there could be a sub-forum on here for android developent?

    posted in technical issues read more
  • tegleg

    ah thats where that forum has gone, thanks
    all the links i found before point to an empty page.

    posted in technical issues read more
  • tegleg

    thanks Gromit, some good links there.

    so to be sure i understand this, taking PdTest as an example,

    in the patch there is an object with 'r left' in it that basically turns the left osc on and off.

    in the android bit there is this

    PdBase.sendFloat("left", left.isChecked() ? 1 : 0);

    and that sends a float of either 0 or 1 depending if the checkbox is checked.

    so i follow that basic pattern for any messages i want to send to the patch?

    edit;
    so i just tried adding a float to change the pitch with a seekbar
    and i get
    could not find PdCore.apk
    any ideas?

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!