SNOBOL-Tone (ST) - a Sound Pattern-Matching Programming Language

SNOBOL-Tone (ST) - a Sound Pattern-Matching Programming Language

SNOBOL-Tone (ST) - A Sound Pattern-Matching Programming Language Dan Ophir(1) and Dotan Dekel(2) AFEKA, Tel-Aviv Academic College of Engineering, Tel Aviv, Israel (1) [email protected] (2) [email protected] Abstract Keywords: Interpreter, Fast Fourier Transform, Pattern- The proposed programming language, matching, MLAT – Multi Level Adaptive SNOBOL-Tone, performs sound matching in a Technique. given sound stream. This is analogous to pattern-matching of substrings in a given 1. Introduction string, as is done in the SNOBOL language [1]. SNOBOL-Tone is a Domain Specific One way to perform the SNOBOL-Tone pattern Language (DSL) for the specific purpose of matching of a spoken text is to transcribe the treating tones, sounds and signals [5]. Another text into written text followed by regular language that has a similar function is CSound SNOBOL pattern matching [2]. However, [6]. Csound is a computer programming when the sound stream is not a spoken stream language for sound, also known as a sound another solution is needed. SNOBOL-Tone is compiler or an audio programming language, designed to provide such a solution. or more precisely, an audio DSL. It is called SNOBOL-Tone integrates three scientific Csound because it is written in C, as opposed domains: to some of its predecessors. 1. Computer science – creating 2. SNOBOL Concepts compilers and interpreters; 2. Electronic engineering – building SNOBOL [1] is a string pattern matching filters of various frequencies; programming language based on a single 3. Applied mathematics – Fourier statement: transformations, wavelets, optimization of algebraic expressions (1) <label>: <subject> <pattern> = and multi-level-adaptive-techniques <object> :S(label1)F(label2) to accelerate various filtering algorithms [3]. In which the subject is searched for a substring fulfilling the constraints defined by the pattern, Examples of SNOBOL-Tone Applications: and then this subject is substituted by the object. In case of a successful pattern 1. A tool for developing smartphone matching the next executed statement is applications; located in the label lebel1, otherwise label2. 2. A diagnostic tool for measuring heart functions; 3. SNOBOL-Tone Language 3. Aircrafts recognition by their engine noise; SNOBOL-Tone is a tone pattern matching 4. Stammering purification – removal of programming language, an extension of the the stammering to produce normal SNOBOL string pattern language. Fig.1 is a speech. simple program that demonstrates SNOBOL- Tone. The statement definitions of the extended languages look very similar to SNOBOL, but the significance of the variables is different. Whereas in regular SNOBOL, the This stream of a one variable function can be variables generally represent a string, namely a matched with the help of auxiliary functions stream of characters, in the SNOBOL-Tone treating other function properties, such as frequency, extreme values etc. The input and they stand for a stream of values, i.e. function output streams may be described visually as a values such as sound. graph thus increasing the program’s readability. Fig. 1: SNOBOL-Tone sample program 4. SNOBOL-Tone (ST) System 5. Theoretical Background The SNOBOL-Tone (ST) System consists of The mathematical tools for ST are mainly modules serving various programming based on digitalized fast Fourier languages: SNOBOL-Tone (ST) and the host transformations which transforms a function to language, MATLAB (see the block diagram in the frequency domain, and on wavelet series Fig. 2). which approximates the analyzed signal. In Blocks 4 and 5 in Fig.2 are relevant to the tone order to increase the algorithm’s efficiency, a treatment. Block 3 treats the ST built in multi-level adaptive technique (MLAT) functions such as Peak_Amplitude, which methodology can be used [4]. searches for the maximal amplitude; Frequency (lower_limit, upper_limit) which 6. Discussion gives the frequencies function between two SNOBOL was chosen as the basic language; limits and Peaks_Number (interval) which however, there were other possibilities such as gives the number of peaks in the interval. the Perl [5] and Python [6] programming Block 4 represents a module that performs languages because of their concise and elegant DFFT - Digitalized Fast Fourier Transform on definitions. There are also some audio a given interval for further usage. manipulation packages available on the market such as Csound and audio DSL [7] and [8]), but their flexibility is rather limited. Fig. 2: Relevant module interactions in the performance of SNOBOL-Tone (ST). 7. Conclusions [3] Lawrence Rabiner, Biing-Hwang Juang, Fundamentals of Speech Recognition, The SNOBOL-Tone programming language 1993. has a wide spectrum of applications in audio [4] Achi Brandt, Multiscale scientific processing and in signal processing. It can be computation: review. In Timothy J. Barth, easily utilized in applications such as Tony Chan, Robert Haimes. Multiscale seismographs, heart monitors, and polygraph and multiresolution methods: theory and analysis. applications. Springer. p. 53, 2002 [5] Randal L. Schwartz, Tom Phoenix, SNOBOL-Tone analogically develops the Learning Perl, O’ Reilly, 2013. string-matching and tree-matching [2], using [6] John Zelle, Python Programming: An tone-matching or generally speaking the Introduction to Computer Science; Kindle signal-matching; its theoretical infrastructure Edition, 2010. is given in [9] and [10]. [7] http://en.wikipedia.org/wiki/Domain- specific_language 8. References [8] http://en.wikipedia.org/wiki/Csound [9] Lawrence Rabiner and Ronald Schafer, [1] Ralph E. Griswold and etc.; Snobol 4 Theory and Applications of Digital Speech Programming Language, (Automatic Processing; Kindle Edition, 2010. Computation) 1971. [10] Bernard Gold, Nelson Morgan, Dan Ellis; [2] Dan Ophir, SNOBOL+ a language for Speech and Audio Signal Processing: tree-pattern-matching; M.Sc. Thesis, Processing and Perception of Speech and Weizmann Institute of Science, 1972. Music,John Wiley, 2013. .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    3 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us