5
$\begingroup$

How do I resize the graphic representation of the sound player in Play, as generated for example by

Play[Cos[1000 t], {t, 0, 5}] 

without having to click-and-drag the player after it has been generated?

Same question for

ExampleData[{"Audio", "BlackcapWarbler"}] 

I've examined all the Options[Play], tried Show, and other obvious approaches, none of which worked.


(I fully expect this question will be closed as being covered in the documentation, but alas I simply cannot find it!)

$\endgroup$

1 Answer 1

6
$\begingroup$

Not really the actual size control, but a trick for relative size. You can use

Magnify[Play[Cos[1000 t], {t, 0, 5}], .5] 

or even something like

Magnify[Audio[Play[Cos[1000 t],{t,0,5}],Appearance->"Detailed"],2] 

You can do the same for

ExampleData[{"Audio", "BlackcapWarbler"}] 

but you need store data in the notebook first and that wrap Magnify around, otherwise it could break:

enter image description here

$\endgroup$
2
  • 2
    $\begingroup$ Yep. Good enough for me... thanks ($+1$, $\checkmark$). WRI should, though, include an Option such as DisplaySize -> . $\endgroup$ Commented Jan 1, 2024 at 19:15
  • $\begingroup$ Thanks for the suggestion @DavidG.Stork -- I passed it to our teams. $\endgroup$ Commented Jan 2, 2024 at 0:53

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.