--- title: "A 2068 Program: Audioscan" type: "article" slug: "a-2068-program-audioscan" url: "http://localhost/article/a-2068-program-audioscan/" markdown_url: "http://localhost/article/a-2068-program-audioscan.md" published_at: "2022-09-14T02:45:33+00:00" modified_at: "2024-05-26T13:06:02+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" category: - name: "The RAMTOP" slug: "the-ramtop" taxonomy: "category" url: "http://localhost/category/periodicals/the-ramtop/" post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "James DuPuy" slug: "james-dupuy" taxonomy: "indiv" url: "http://localhost/indiv/james-dupuy/" publication_r: id: 39272 title: "The RAMTOP" type: "periodical" url: "http://localhost/periodical/the-ramtop/" authors: "James DuPuy" issues_articles: - id: 39879 title: "The RAMTOP Sep 1986" type: "issue" url: "http://localhost/issue/the-ramtop-sep-1986/" pages: "6" pubdate: "September 1986" related_articles: - id: 38530 title: "Audioscan" type: "article" url: "http://localhost/article/audioscan/" - id: 43129 title: "Audioscan" type: "article" url: "http://localhost/article/audioscan-2/" - id: 43705 title: "Audioscan" type: "article" url: "http://localhost/article/audioscan-3/" archive_link: false article_media: - id: 51403 title: "Audioscan" type: "computer_media" url: "http://localhost/computer_media/audioscan/" --- # A 2068 Program: Audioscan ## Source Code: Audioscan ``` 2 REM ZX Appeal Jul/August 1986 3 REM p21 100 REM Audioscan 102 REM DEF FN a(l)=1+INT (.5+l/30) 103 GO SUB 410 105 GO TO 200 110 DRAW INK 1;x-n,INT (-l+y)/1.5: LET x=n: LET y=l: RETURN 120 DRAW INK 2;0,-l/2: RETURN 200 PAPER 0: INK 7: BRIGHT 1: CLS 210 PRINT AT 0,10;"Audioscan" 220 PRINT AT 2,2;"This program gives a graphic representation of a signal input to the 2068 ear socket." 225 PRINT AT 7,2;"Load tape or other signal source to the ear socket and select option:" 230 PRINT AT 12,5;"1--line graph";AT 13,5;"2--bar graph";AT 14,5;"3--point graph" 240 INPUT INVERSE 1;"enter option (1 to 3)";q: IF q<1 OR q>3 THEN GO TO 240 250 CLS : PRINT #1; INVERSE 1;"space to freeze scan": LET i$="": LET x=0: LET y=0 255 FOR n=0 TO 255: LET l=USR tone: PLOT n,INT (l/1.5) 260 IF q<3 THEN GO SUB 100+(q*10) 265 LET i$=INKEY$: IF i$=" " THEN GO TO 300 270 NEXT n 275 GO TO 250 300 PRINT #1; INVERSE 1;"m=menu r=restart e=end": PAUSE 0 310 LET i$=INKEY$: IF i$="m" THEN RUN 320 IF i$="r" THEN GO TO 270 330 IF i$="e" THEN STOP 400 DATA 1,0,255,17,0,0,219,254,203,119,32,1,19,16,247,55,75,201 410 LET tone=65368 420 FOR n=tone TO tone+17: READ d: POKE n,d: NEXT n: RETURN 425 STOP ```