BaselScript


× SPRACHE NACHRICHTEN BEISPIELE BEISPIELFILME INSTALLATION IMPRESSUM DATENSCHUTZ SUPPORT -------------- BESCHREIBUNG Einführung BASEL-Sprache Grundkenntnisse    • Feld auch Variable    • Array    • Hash-Array    • Mathem. und Vergleichsoperatoren    • Bedingungen    • Schleife    • Timer    • Datei    • Datensatz    • Verzeichnis    • Menu    • Dialog    • ListView (Ansichtsliste)    • Form Arbeiten mit Skripten    • Skripte    • Scriptstruktur    • Aufruf eines Skriptes    • Skript starten    • Skript beim Start der Anwendung starten    • Szene    • Szene Deklaration    • Szene laden und starten Arbeiten mit Feldern    • Feldwert speichern    • Feldwert wiederherstellen Arbeiten mit Arrays    • Hash-array Arbeiten mit Verzeichnissen    • Standardverzeichnisse    • Unterverzeichnis erstellen    • Unterverzeichnis löschen    • Verzeichnisinhalt Arbeiten mit Dateien    • Dateistruktur deklarieren    • Datei in Speicher einlesen    • Datensatz in Datei schreiben    • Datei speichern    • Eine Datei in eine andere Datei umschreiben    • Datei umbenennen    • Datei kopieren    • Datensätze löschen    • Datei löschen    • Eingabe in Datei aus dem Skript    • Anzahl ausgewählter Datensätze    • Datensatz N lesen    • Verschlüsseln    • Dateien zusammenführen    • Update file    • Datensätze zusammenführen    • Space reduzieren    • Teilstring in Datei ersetzen    • Datensatz nach ausgewähltem einfügen    • Neuen Datensatz vor ausagewähltem hinzufühgen Arbeiten mit Bildschirm    • Erklärungen    • Form oder Formular       •• Tile = text       •• Tile = input       •• Tile = button       •• Tile = rectangle       •• Tile = image       •• Tile = radiobutton       •• Tile = checkbox       •• Tile = togglebutton       •• Tile = seekbar       •• Tile = property       •• Property-Beispiel       •• Tile-Anweisungen    •  Dialog    • List view    • Menü    • Message/print    • Trace Arbeiten mit Grafik    • Draw image    • Draw line    • Draw rectangle    • Draw circle    • Draw ellipse    • Draw text    • Draw polygon    • Draw point Arbeit mit Sound Arbeit mit Musik Vibration Arbeit mit Server    • Image herunterladen    • Stream als csv-Datei herunterladen    • Sound herunterladen    • mp3-Datei herunterladen    • String von URL herunterladen    • Anweisungen nach Download    • Datei auf Server hochladen Aufruf einer Webseite Programm aus dem Skript ausführen Notifications Funktionen    • Allgemeine Funktionen    • String funktionen    • Math Funktionen    • Date Funktion    • Array-Funktionen    • File-Funktionen    • Verzeichnis-Funktionen    • Grafikfunktionen    • Form funktionen    • Tabellenfunktionen Google Maps App für Android    • Ort zeigen    • Suche nach Orten    • Navigation Mehrsprachige Skripte Skript erstellen.    • Skript mit dem Texteditor erstellen    • Skript auf PC erstellen    • Skript mithilfe von Vorlagen erstellen    • Skript mit Assistent erstellen    • Formularassistent    • Dialogassistent    • Menüassistent Registrierung und Login    • Meine Skripte Klonen des Android-Interpreters Copy script from Download Festlegen von Standardgrößen Mögliche Probleme beim Ausführen von Skripten    • Clinch-Situation    • Programm hängt    • Skriptstart und keine Änderungen sichtbar Reservierte Namen Globale Variable Standardparameter für Szenenkomponenten Einstellungen Liste der Unicode-Zeichen Fehlerdiagnose Einige Vergleiche bekannter Skriptsprachen mit BaselScript    • Menu    • Dialog    • List View    • Form    • Download file    • Draw circle ...
Beschreibung

                 

Arbeit mit Sound

Sound abspielen:
sound mode=play file=name [directory=name]
Standardverzeichnis = #directory_sound

Stop sound:
sound mode=stop

Sound weiter spielen:
sound mode=resume

Lautstärke einstellen:
sound volume=value

Position setzen:
sound position=value

Position ablesen:
#position = $sound_position()

Dauer ablesen:
#duration = $sound_duration()


Skriptbeispiel:

scene=1 name="piano" orientation=landscape
section init
    draw form
end section

form
   tile=property y=50 w=85 h=350 bgcolor=white size=40 color=white
   tile=button name=#button_1 section=press_c1 x= 10
   tile=button name=#button_2 section=press_d1 x=100
   tile=button name=#button_3 section=press_e1 x=190
   tile=button name=#button_4 section=press_f1 x=280
   tile=button name=#button_5 section=press_g1 x=370
   tile=button name=#button_6 section=press_a1 x=460
   tile=button name=#button_7 section=press_b1 x=550

   tile=property y=50 w=68 h=180 bgcolor=black size=35 color=black
   tile=button name=#button_1# section=press_c#1 x= 60
   tile=button name=#button_2# section=press_d#1 x=150
   tile=button name=#button_4# section=press_f#1 x=330
   tile=button name=#button_5# section=press_g#1 x=420
   tile=button name=#button_6# section=press_a#1 x=510

   tile=property y=50 w=85 h=350 bgcolor=white size=40 color=white
   tile=button name=#button_1 section=press_c2 x= 640
   tile=button name=#button_2 section=press_d2 x=730
   tile=button name=#button_3 section=press_e2 x=820
   tile=button name=#button_4 section=press_f2 x=910
   tile=button name=#button_5 section=press_g2 x=990
   tile=button name=#button_6 section=press_a2 x=1080
   tile=button name=#button_7 section=press_b2 x=1170

   tile=property y=50 w=68 h=180 bgcolor=black size=35 color=black
   tile=button name=#button_1# section=press_c#2 x=690
   tile=button name=#button_2# section=press_d#2 x=780
   tile=button name=#button_4# section=press_f#2 x=960
   tile=button name=#button_5# section=press_g#2 x=1040
   tile=button name=#button_6# section=press_a#2 x=1130

end form

section press_c1
    #sound="C1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_c#1
    #sound="Cs1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_d1
    #sound="D1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_d#1
    #sound="Ds1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_e1
    #sound="E1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section


section press_f1
    #sound="F1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_f#1
    #sound="Fs1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section


section press_g1
    #sound="G1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_g#1
    #sound="Gs1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_a1
    #sound="A1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_a#1
    #sound="As1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_b1
    #sound="B1.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_c2
    #sound="C2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_c#2
    #sound="Cs2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_d2
    #sound="D2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_d#2
    #sound="Ds2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_e2
    #sound="E2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section


section press_f2
    #sound="F2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_f#2
    #sound="Fs2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_g2
    #sound="G2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_g#2
    #sound="Gs2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_a2
    #sound="A2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_a#2
    #sound="As2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section

section press_b2
    #sound="B2.wav"
    sound mode=start file= #sound directory=#_directory_sound_examples
end section


section back
    call script=examples
end section

end scene 1
   

Warning: getimagesize(screens/16_0_2_landscape.jpg): failed to open stream: No such file or directory in /var/www/web144706/html/baselscript/docu.php on line 496