• polymerchm

    What happens to files?

    posted in Pythonista read more
  • polymerchm

    @omz Pythonista 3 beta has expired. When do we anticipate an update?

    posted in Pythonista read more
  • polymerchm

    @tlinnet @omz Did your app use any Python 3.5 dependent code? I need 3.5 as the default interpretor? Even with #!python3 on first line, print (version)says its 2.7 when run in the xcode ios simulator.

    posted in Pythonista read more
  • polymerchm

    @omz Based on my experiments, am I correct in assuming that the template only has the 2.7 interpretor? Any hope the the 3.5/3.6 template will be forthcoming? I am learning swift just in case.

    posted in Pythonista read more
  • polymerchm

    Trying to run my app via xcode and the current template. How do you force it to run the Python 3 interpretor?

    posted in Pythonista read more
  • polymerchm

    Not that I have tried it, but you might try it as an objective-c project since I believe that's how OMZ wrote pytonista.

    posted in Pythonista read more
  • polymerchm

    @omz Worked as advertised. I always forget that trick. @JonB: Will try that in other situations. I guess I need to pay careful attention to the autocomplete for other tidbits. Thanks.

    posted in Pythonista read more
  • polymerchm

    @JonB. YES!!!!! That's what I hoped was out there. WIll try it tomorrow when Im actually awake and functional!!! Where do you find these things?

    posted in Pythonista read more
  • polymerchm

    def playProgression(button):            
        if os.path.exists('waves'):
            if not model._InstrumentOctave:
                return
            else:
                baseOctave = model._InstrumentOctave
            strings = model._InstrumentTuning
            
            for chordNumber in range(len(model._ProgFingerings))
     # here is where I inserted code to trigger a redraw of a custom view.  
      # the redraw happens when this loop finished
                thisFingering = model._ProgFingeringsPointers[chordNumber]
                cc = model._ProgFingerings[chordNumber][thisFingering]
                frets = cc[2]
                dead_notes = [item[3] == 'X' for item in cc[0]]
                tones = []
                for fret,string,dead_note in zip(frets,strings,dead_notes):
                    if  dead_note:
                        continue
                    octave,tone = divmod(string + fret,12)
                    tones.append((tone,octave+baseOctave))
                for tone,octave in tones:
                    sound.play_effect(getWaveName(tone,octave))
                    time.sleep(model.play_arpSpeed*0.25)
                time.sleep(3*model.play_arpSpeed) # rest between chords
    # the "chords" play just fine as well as the final sleeps between chords.
       
    

    posted in Pythonista read more
  • polymerchm

    Reading the IOS bibles, seems I need to have access to the audioPlayeDidFinishPlaying:successfully: method in the delegate. Any chance the delegate is a hidden "feature" of sound or one I can "hack" into?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!