Jump to content

Winston

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by Winston

  1. Basically, I want to make the app open when I double-click the file in Windows Explorer, like when you double click a .WAV file and it opens Windows Media Player, opening the file without having to manually open the file after the application starts. I want to do the same so when I open a file in my application, it detects that I am trying to open the file, and auto-opens it if it is compatible.
  2. I got it to open the application when I right click and clicked my app, but the picture didn't open. Same thing with Double clicking. I looked for code online with no success; Google only found how to open in Visual Studio, not what I wanted. Not to be mean, but if I don't get any answers again, I will be quitting for VB on this page and look for an alternate VB Forum. Twice, I ask for help here on this Forum about Visual Studio/Basic, and nobody answers, and can't change tags for better luck. Frustrating. However, I may still ask about other codes if I get answers. Anyhow, I want to use this highlighted "Open with..." command, or replace "Open (the app, and manually open file by drag-and-drop to the app)" and have it open. Automatic, not with open and drag-and-drop. I want to open when I double click. I need code to link the opened file like I did drag-and-drop to a picture tool to auto open, unless I opened the app alone... Let me know if you need the current code. Please, PLEASE give me help, thank you for the help. Any help WOULD BE APRECIATED.
  3. I don't know how to change tags in this son-of-a-freaking-gun, how do I add a tag to this question? If I can't, then I'll have to repost the question with the tags. Which I find BS! I was going to add tags to increase chances of response... But this junk is preventing me from adding it to this question.
  4. I saw some XML files in an APK file as ZIP. I came here because it took hours for me to write a code for HTML that counts in geometric progression, and could not figure it out, and I don't want to waste another 5 hours trying to find code for Android apps that does this. I tried copying the HTML code into certain files in my APK app in Microsoft Visual Studio 2019, I tried online sites, I tried converting from HTML to APK, I even tried converting from HTML to EXE and then APK, and eventually, the only option is to ask for help. I successfully turned an HTML to EXE in eWriter. For the sakes of good, if I can convert to a Windows application, why not an Android application? Here is my code in my HTML... <!DOCTYPE html> <html> <title>Son Of A Pitch 2! - Sound Frequency Converter</title> <style> body { background-image: url("BackGround.png"); background-repeat: repeat; background-attachment: fixed; background-position: center; background-size: 100% 100%; } </style> <body> <audio id="tappingone"> <source src="ButtonClick.WAV" type="audio/wav"> </audio> <audio id="tappingtwo"> <source src="ButtonHover.WAV" type="audio/wav"> </audio> <audio loop id="musicalbg"> <source src="Music.wav" type="audio/wav"> </audio> <h2>Winston presents...</h2> <img src="Logo.png" width="500" height="500"><br> <button id="mon" onclick="myTapClickAud();BGMon();" onmouseover="myOverClickAud();" onmouseleave="myClickOffClickAud();">Background Music On</button> <button disabled="true" id="moff" onclick="myTapClickAud();BGMoff();" onmouseover="myOverClickAud();" onmouseleave="myClickOffClickAud();">Background Music Off</button><br> Type the octave <input type="number" id="term" value="0"> and <button onclick="myExample();myTapClickAud();" onmouseover="myOverClickAud();" onmouseleave="myClickOffClickAud();">convert</button> to the units... <p id="exmpone1">With this page, you can convert sound frequencies to other compatible units.</p> <p id="exmpone2">We will be using 1 Hertz to represent note C0. The higher the number, the higher the frequency, and lower or negative numbers will lower the frequency.</p> <p id="exmpone3">This is an updated version of the original S.O.A.P. which could barely do Hertz, now upgraded to work better thanks to a user helping and giving me programming code.</p> <p id="exmpone4">So? What are you waiting for? Enter a number and convert!</p> <p id="exmpone5"><br>Last updated on Friday, July 16, 2021, 4:11 PM</p> <p id="exmpone6"><br><br><b>Missing a frequency and&#x002F;or pitch unit? Report incorrect information? Errors and&#x002F;or technical difficulties? Don't scrub your cassette tape off, but instead, please contact me and tell me what is wrong...</b></p> <p id="exmpone7"><u>CENSORED-ADDRESS.EXE</u></p> <p id="exmpone8"></p> <p id="exmpone9"></p> <p id="exmpone10"></p> <p id="exmpone11"></p> <p id="exmpone12"></p> <p id="exmpone13"></p> <p id="exmpone14"></p> <script> var one = document.getElementById("tappingone"); var two = document.getElementById("tappingtwo"); var three = document.getElementById("musicalbg"); function BGMon() { three.play(); moff.disabled = false; mon.disabled = true; } function BGMoff() { three.pause(); three.currentTime = 0; moff.disabled = true; mon.disabled = false; } function myTapClickAud() { one.play(); one.currentTime = 0; two.pause(); } function myOverClickAud() { one.pause(); two.play(); two.currentTime = 0; } function myClickOffClickAud() { two.pause(); } function myOffClickAud() { one.pause(); two.pause(); } function myExample() { var term = Number(document.getElementById("term").value); document.getElementById("exmpone1").innerHTML = geometricProgression(1, 2, term)*2 + " Hertz"; document.getElementById("exmpone2").innerHTML = geometricProgression(1, 2, term)/1000*2 + " Kilohertz"; document.getElementById("exmpone3").innerHTML = term + " Octaves"; document.getElementById("exmpone4").innerHTML = term*1200 + " Cents"; document.getElementById("exmpone5").innerHTML = term*12 + " Semitones"; document.getElementById("exmpone6").innerHTML = term*5 + " Sharp&#x002F;Flat Notes (Black Keys)"; document.getElementById("exmpone7").innerHTML = term*7 + " Natural Notes (White Keys)"; document.getElementById("exmpone8").innerHTML = geometricProgression(1, 2, term)/1000000000*2 + " Gigahertz"; document.getElementById("exmpone9").innerHTML = geometricProgression(1, 2, term)/1000000*2 + " Megahertz"; document.getElementById("exmpone10").innerHTML = geometricProgression(1, 2, term)/1000000000000*2 + " Terahertz"; document.getElementById("exmpone11").innerHTML = geometricProgression(1, 2, term)/10*2 + " Decahertz"; document.getElementById("exmpone12").innerHTML = geometricProgression(1, 2, term)/100*2 + " Hectohertz"; document.getElementById("exmpone13").innerHTML = 1 / geometricProgression(1, 2, term)/2 + " Seconds Of Cycle"; document.getElementById("exmpone14").innerHTML = term*6 + " Whole Tones"; } function geometricProgression(a1, r, n) { return a1 * Math.pow(r, n-1); } </script> <a>Want to use it offline? Download in your operating systems now, but only if your console is labeled in Green... if it is labeled in Red, it is unavalible.<br><a style="text-decoration:none;color:#00FF00;background-color:#008000;" href="Windows.exe">Windows</a><br><a style="text-decoration:none;color:#FF0000;background-color:#800000;">Macintosh</a><br><a style="text-decoration:none;color:#FF0000;background-color:#800000;">Linux</a><br><a style="text-decoration:none;color:#FF0000;background-color:#800000;">Android</a><br><a style="text-decoration:none;color:#FF0000;background-color:#800000;">iPhone</a><br><a style="color:#FF0000;background-color:#800000;">iPad</a><br><a style="text-decoration:none;color:#FF0000;background-color:#800000;">Chromebook</a> </body> </html> Any suggestions? How would I write/build this in an Android app?
  5. Thank you, it helped me make the file work, and helped move to the correct topic (don't know how to do that manually)... But now I face a new problem. Though I did convert the HTML to EXE, I've been trying for a few hours now to convert this HTML to APK. I tried converting the HTML straight over to the XML in an APK app, and I tried converting an EXE to APK. One app gave me (and others, frustratingly,) a message; "Wrong! Select a destination folder correctly...". One site, trying to convert HTML to APK, I could not import pictures. I looked for a way to convert from CSS and other things to it like APK, no luck, "You can't convert xxx to yyy. Meant for a different platform." Well, could you try to convert this HTML to APK for me, or show me how to rewrite the commands? <!DOCTYPE html> <html> <title>Son Of A Pitch 2! - Sound Frequency Converter</title> <style> body { background-image: url("BackGround.png"); background-repeat: repeat; background-attachment: fixed; background-position: center; background-size: 100% 100%; } </style> <body> <audio id="tappingone"> <source src="ButtonClick.WAV" type="audio/wav"> </audio> <audio id="tappingtwo"> <source src="ButtonHover.WAV" type="audio/wav"> </audio> <h2>Winston presents...</h2> <img src="Logo.png" width="500" height="500"><br> Type the octave <input type="number" id="term" value="0"> and <button onclick="myExample();myTapClickAud();" onmouseover="myOverClickAud();" onmouseleave="myClickOffClickAud();">convert</button> to the units... <p id="exmpone1">With this page, you can convert sound frequencies to other compatible units.</p> <p id="exmpone2">We will be using 1 Hertz to represent note C0. The higher the number, the higher the frequency, and lower or negative numbers will lower the frequency.</p> <p id="exmpone3">This is an updated version of the original S.O.A.P. which could barely do Hertz, now upgraded to work better thanks to a user helping and giving me programming code.</p> <p id="exmpone4">So? What are you waiting for? Enter a number and convert!</p> <p id="exmpone5"><br>Last updated on Thursday, July 15, 2021, 12:57 PM</p> <p id="exmpone6"><br><br><b>Missing a frequency and&#x002F;or pitch unit? Report incorrect information? Errors and&#x002F;or technical difficulties? Don't scrub your cassette tape off, but instead, please contact me and tell me what is wrong...</b></p> <p id="exmpone7"><u>CENSORED-ADDRESS</u></p> <p id="exmpone8"></p> <p id="exmpone9"></p> <p id="exmpone10"></p> <p id="exmpone11"></p> <p id="exmpone12"></p> <p id="exmpone13"></p> <script> var one = document.getElementById("tappingone"); var two = document.getElementById("tappingtwo"); function myTapClickAud() { one.play(); one.currentTime = 0; two.pause(); } function myOverClickAud() { one.pause(); two.play(); two.currentTime = 0; } function myClickOffClickAud() { two.pause(); } function myOffClickAud() { one.pause(); two.pause(); } function myExample() { var term = Number(document.getElementById("term").value); document.getElementById("exmpone1").innerHTML = geometricProgression(1, 2, term)*2 + " Hertz"; document.getElementById("exmpone2").innerHTML = geometricProgression(1, 2, term)/1000*2 + " Kilohertz"; document.getElementById("exmpone3").innerHTML = term + " Octaves"; document.getElementById("exmpone4").innerHTML = term*1200 + " Cents"; document.getElementById("exmpone5").innerHTML = term*12 + " Semitones"; document.getElementById("exmpone6").innerHTML = term*5 + " Sharp&#x002F;Flat Notes (Black Keys)"; document.getElementById("exmpone7").innerHTML = term*7 + " Natural Notes (White Keys)"; document.getElementById("exmpone8").innerHTML = geometricProgression(1, 2, term)/1000000000*2 + " Gigahertz"; document.getElementById("exmpone9").innerHTML = geometricProgression(1, 2, term)/1000000*2 + " Megahertz"; document.getElementById("exmpone10").innerHTML = geometricProgression(1, 2, term)/1000000000000*2 + " Terahertz"; document.getElementById("exmpone11").innerHTML = geometricProgression(1, 2, term)/10*2 + " Decahertz"; document.getElementById("exmpone12").innerHTML = geometricProgression(1, 2, term)/100*2 + " Hectohertz"; document.getElementById("exmpone13").innerHTML = 1 / geometricProgression(1, 2, term)/2 + " Second Cycles"; } function geometricProgression(a1, r, n) { return a1 * Math.pow(r, n-1); } </script> </body> </html> I have the pictures and sounds, but that probably would be stored in "Resources/drawable". What app could I use to turn it into an APK Android Application?
  6. Here is an update. I was continuing to try to find it, https://www.geeksforgeeks.org/program-to-print-gp-geometric-progression/ was similar, but I want it to be variable, and show final number without all numbers from 1 up. When I tried to type 5 in the code, and have the ratio of 2 (if I am not mistaken), it shows, "1, 2, 4, 8, 16", but I just want the "16" when I change it. I tried this, https://www.30secondsofcode.org/js/s/geometric-progression and again, set the ratio to 2, but it only shows numbers that match in the code, where if I write 8, it would read, "1,2,4,8". I'm still not having any luck, so please respond and help. I don't know why they just make "Math.GP", which would be easier.
  7. I apologize for posting in VBS, I was in a hurry. I searched for hours for a simple code to count "1, 2, 3, 4, 5, 6, 7, 8" as "1, 2, 4, 8, 16, 32, 64, 128" in JS or HTML or CSS; Multiplying the same number with itself didn't work. I want simple code and Google would not show anything. I found "Math.pow()" and "Math.LOG()", but can't find a simple code with an example of "Math.GMS" if Geometric Sequence, or "Math.GMP" if Geometric Progression. What is the simplest I can write? Do I have to combine two or more versions of "Math.xxx()" with my number? The formula is confusing, so I could not write it using that code. Not to be rude, but PLEASE ANSWER, my last question never got an answer. If you don't even answer this one as well, what's the point of this site? If I can't ask something without getting an answer, I will have to ask elsewhere. I SIGN UP TO GET AN ANSWER, not to just quit and go elsewhere. So if you have any help, PLEASE HELP! I would like to have it count "1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096..." when entering "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13...". This is the closest I got; <input type="number" id="exmp" value="1"> <button onclick="myExample()">Convert</button> <p id="exmpone1"></p> <script> function myExample() { var no = document.getElementById("exmp").value; document.getElementById("exmpone1").innerHTML = Math.pow(no, no); } </script>
  8. I might have meant for the 5th on to be {1, 1, 1, 0, 1}, but again, I could be mistaken.
  9. While I wait for a reply, I tested this in GIMP by using "Colors/Components/Channel Mixer", but this again won't do, this time because it becomes too saturated. However, that was GIMP. This code is written for similar effect in Visual Studio code: Dim grayscale As New Imaging.ColorMatrix(New Single()() _ { New Single() {-0.5, 1, 1, 0, 0}, New Single() {1, -0.5, 1, 0, 0}, New Single() {1, 1, -0.5, 0, 0}, New Single() {0, 0, 0, 1, 0}, New Single() {0, 0, 0, 0, 1} }) Please reply soon, I have waited several hours with no response.
  10. I'm trying to either invert the color picture without brightness affected, or rotate color hue by 180. With no success looking that up, I tried this; Dim grayscale As New Imaging.ColorMatrix(New Single()() _ { New Single() {0, 0.5, 0.5, 0, 0}, New Single() {0.5, 0, 0.5, 0, 0}, New Single() {0.5, 0.5, 0, 0, 0}, New Single() {0, 0, 0, 1, 0}, New Single() {0, 0, 0, 0, 1} }) Colors were very lossy. I look for a way to restore or double Saturation after doing this. Nothing on the internet was working, and I need something like a toggle button that can reverse colors without or very small color loss and can be repeated. Help? (And yes, combining what I am looking for and Invert would result in an image inverted without changing color.)
  11. I was looking for code that switches R with H, G with S and B with L in JS, CSS, HTML, and so. Having no success, it kept giving me a color picker and color code, no matter how I describe it to Google, and it is leaving me no other choice but to ask for help. How do I switch colors in videos and pictures from and/or to RGB and other programmed in a .HTM page? PS: I don't want to edit the picture in a different program, I want to display it differently on the page. Suggestions? Do I need a color map or brightness map? Help would be appreciated.
  12. dsonesuk, What are you talking about?! I think you have the wrong address, or you have a typo. If it is an expression, what does it mean? By "DNA from a child is not mine", did you mean "code from a language is not working"?
  13. This picture should give you an idea... The Left is Blue, Right is Red, Center/Mono is Green. I want to make audio files become images with something like this. How is there no code if I can do this manually? I want to take the 3 audio channels and convert to and from the 3 pixels of color in a spectrum. I didn't waste a day trying to sign up to have "There is no code", surely there is something? Even if it isn't Java, or CSS, or HTML5, C++, XML, and so, I want to assign one color to one channel and the other to another. Is that too much to ask after waiting to be approved, and waiting for an answer? I'm going to be disappointed, especially after I show a picture that IT IS POSSIBLE. I did this manually, with a picture-editing program. I implore you, please! Something! Should I try a different platform?
  14. Forgot to mention; What is the code needed to change brightness depending on the Left Right and frequencies volume, not Mono and not wave samples? Will this work in HTM, JavaScript, CSS, etc.? Do I need to select channels 0, 1, 2 or 1, 2, 3? And how to change the color to mix brightness as said? Like I said, I could not find the code.
  15. I was thinking about making a 3-channel audio file with pictures stored as a spectrum where one direction is time and the other is frequency, and have it displayed as Red-Green-Blue instead of hearing as Left-Right-Center. The problem is, even after Googling, I can't find a way to convert even Left-Right (Stereo) to pixels. As some may call it, Spectrogram, FFT, Frequencies, Pitch, I want to show different colors when different channels play in an HTM file. Help? Any suggestions? I want to convert 3 channels sound frequency to each of the pixel colors, in a mixed spectrum, NOT change the volume to get a different color. Example; Say that the Red and Green plays noise, and Blue is playing no sound. That would result in seeing yellow. Another idea, Red plays noise with a Sine tone of Green, and Blue is off. You would see red with a line of Yellow. Help would be appreciated.
×
×
  • Create New...